cvf | R Documentation |
Internal function for cv_plmm which calls plmm on a fold subset of the original data.
cvf(i, fold, type, cv_args, ...)
i |
Fold number to be excluded from fit. |
fold |
n-length vector of fold-assignments. |
type |
A character argument indicating what should be returned from predict.plmm. If |
cv_args |
List of additional arguments to be passed to plmm. |
... |
Optional arguments to |
a list with three elements:
a numeric vector with the loss at each value of lambda
a numeric value indicating the number of lambda values used
a numeric value with the predicted outcome (y hat) values at each lambda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.