.cv {palasso} | R Documentation |
Cross-validation
Description
Repeatedly leaves out samples, and predicts their response.
Usage
.cv(y, x, foldid, lambda, args)
Arguments
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) |
Value
Returns matrix of predicted values (except "cox")
Examples
NA
[Package palasso version 0.0.9 Index]