View source: R/complexity.LASSO.R
complexity.LASSO | R Documentation |
Determines the optimal value for tuning parameter lambda for a regression model with lasso penalties via cross-validation. Conforming to the calling convention required by argument complexity
in peperr
call.
complexity.LASSO(response, x, full.data, ...)
response |
a survival object ( |
x |
|
full.data |
data frame containing response and covariates of the full data set. |
... |
additional arguments passed to |
Function is basically a wrapper around optL1
of package penalized. Calling peperr
, default arguments of optL1
can be changed by passing a named list containing these as argument args.complexity
.
Scalar value giving the optimal value for lambda.
peperr
, optL1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.