Description Usage Arguments Value
This function extracts a subset of active variables (nm_act) of the relavant variables from X'X and X'y to get out-of-sample predictions for a matrix containing only the active variables This speeds up the cross-validation for post-Lasso to a large extent
| 1 | fitted_values(XtX_all, Xty_all, x_pred, nm_act)
 | 
| XtX_all | Crossproduct of all covariates | 
| Xty_all | Crossproduct of covariates and outcome | 
| x_pred | Covariates matrix of the PREDICTION sample | 
| nm_act | names of active variables | 
fit_val fitted values in the prediction sample
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.