get_lasso_variables: Variable selection by LASSO procedure

View source: R/ajustments.R View source: R/ajustments.R

get_lasso_variablesR Documentation

Variable selection by LASSO procedure

Description

Variable selection by LASSO procedure

Variable selection by LASSO procedure

Usage

get_lasso_variables(
  tab,
  vardep,
  varindep = character(0),
  type = "logistic",
  sparse = TRUE
)

get_lasso_variables(
  tab,
  vardep,
  varindep = character(0),
  type = "logistic",
  sparse = TRUE
)

Arguments

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

Value

A character vector of the predictor variables

A character vector of the predictor variables


KZARCA/simplestats documentation built on Feb. 19, 2024, 1:11 a.m.