estMSE | R Documentation |
Estimate MSE and its standard error
estMSE(
y,
x,
fitFun,
predFun,
methodMSE,
nFolds,
nInnerFolds,
cvReps,
nBootstraps
)
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 |
methodMSE |
The method to estimate the MSE, either "CV" for cross-validation or "bootstrap" for .632 bootstrap |
nFolds |
The number of outer folds for cross-validation |
nInnerFolds |
The number of inner cross-validation folds |
cvReps |
The number of repeats for the cross-validation |
nBootstraps |
The number of .632 bootstraps |
The nested cross-validation scheme follows \insertCiteBates2023oosse, the .632 bootstrap is implemented as in \insertCiteEfron1997oosse
A vector with MSE estimate and its standard error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.