View source: R/linear_regression_mcr.r
Cross validate a kernel-least-squares, or kernel-regression model.
1 2 |
y |
outcome vector |
X |
covariate matrix |
n_folds |
number of folds for CV |
type |
either 'RKHS' or 'regression' |
alpha |
penalization parameter for 'RKHS' (see |
dat_ref |
previously observed "reference" matrix of covariates, for 'RKHS' |
warn_internal |
give warning if no dat_ref is not provided |
kern_fun |
kernel function used |
... |
passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.