fitted_values_cv | R Documentation |
fitted_values_cv
extracts the active set from X^TX
and
X^Ty
to get out-of-sample predictions
for a matrix already containing only the active variables.
The function is only relevant for cases where at least one variable is selected.
fitted_values_cv(XtX_all, Xty_all, x_pred, nm_act)
XtX_all |
Cross product of all covariates |
Xty_all |
Cross product of covariates and outcome |
x_pred |
Covariates matrix of the prediction sample |
nm_act |
Names of active variables |
Fitted values in the prediction sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.