simpleCV | R Documentation |
Perform simple CV, and return the MSE estimate
simpleCV(y, x, fitFun, predFun, nFolds)
y |
The vector of outcome values |
x |
The matrix of predictors |
fitFun |
The function for fitting the prediction model |
predFun |
The function for evaluating the prediction model |
nFolds |
The number of outer folds for cross-validation |
The MSE estimate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.