splits data objects into training and testing sets
CVsplit(X, Y, split = 0.5, N = NULL)
X | nxp data matrix. Each row corresponds to a single observation and each column contains n observations of a single feature/variable. |
---|---|
Y | nxr response matrix. Each row corresponds to a single response and each column contains n response of a single feature/response. |
split | fraction of objects devoted to training set |
N | option to provide number of objects devoted to training set |
X.train, Y.train, X.test, Y.test