cvR | R Documentation |
Calculates the objective value of the cross-validation criterion to select the degree of separability R=1,...,maxR best fitting the data.
cvR(X, Folds = 10, maxR = 7, maxiter = 10)
X |
data set, array of size |
Folds |
number of folds |
maxR |
maximum degree-of-separability considered (defaults to log-sample size) |
maxiter |
maximum number of iterations for |
CV objective
X <- array(runif(20*3*4),c(20,3,4)) cvscores <- cvR(X,10,5) min(localMaxima(-cvscores)) # best R is chosen as the smallest local minimum # of the CV objective
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.