View source: R/ajustments.R View source: R/ajustments.R
get_lasso_variables | R Documentation |
Variable selection by LASSO procedure
Variable selection by LASSO procedure
get_lasso_variables(
tab,
vardep,
varindep = character(0),
type = "logistic",
sparse = TRUE
)
get_lasso_variables(
tab,
vardep,
varindep = character(0),
type = "logistic",
sparse = TRUE
)
tab |
A data.frame |
vardep |
The dependant variable |
varindep |
The independant variables to force into the model |
type |
Type of analysis: linear, logistic or survival |
sparse |
logical: should the variable selection be parsimonious |
A character vector of the predictor variables
A character vector of the predictor variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.