kfold_cv_seq | R Documentation |
This function provides the MSE estimate of linear model predictions through the k-fold cross-validation method.
kfold_cv_seq( X, y, k = 5, algorithm = "sd", tol = 0.001, maxit = 1000, stepsize = 0.001, verbose = FALSE )
X |
[matrix] Design matrix |
y |
[vector] Observed response vector |
k |
[numeric] Number of folds - default is 5 |
algorithm |
[string] "sd" for steepest descent method; "gd" for gradient descent method |
tol |
[numeric] Tolerance for stopping criteria |
maxit |
[numeric] Maximum number of iterations for stopping criteria |
stepsize |
[numeric] Stepsize - not used for steepest descend method |
verbose |
[logical] |
[numeric] The k-fold cross-validation MSE - Mean Squared Error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.