Skip to contents

model_continuous_lasso

Usage

model_continuous_lasso(data, y)

Arguments

data

data to be analyzed

y

name/string of outcome to be predicted that is within the data

Value

lasso results

Examples

data <- data.frame(y = mtcars$mpg, wt = mtcars$wt, hp = mtcars$hp)
model_continuous_lasso(data, "y")
#> 
#> Call:  glmnet(x = x, y = y, alpha = 1, lambda = cv_lasso$lambda.min) 
#> 
#>   Df %Dev Lambda
#> 1  2 82.6   0.15