.cv | R Documentation |
Repeatedly leaves out samples, and predicts their response.
.cv(y, x, foldid, lambda, args)
y |
response:
vector of length |
x |
covariates:
matrix with |
foldid |
fold identifiers:
vector of length |
lambda |
lambda sequence: vector of decreasing positive values |
args |
options for paired lasso: list of arguments (output from .dims and .args) |
Returns matrix of predicted values (except "cox")
NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.