Skip to contents

model_continuous_ridge

Usage

model_continuous_ridge(data, y)

Arguments

data

data to be analyzed

y

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

Value

ridge results

Examples

data <- data.frame(y = mtcars$mpg, wt = mtcars$wt, hp = mtcars$hp)
model_continuous_ridge(data, "y")
#> 
#> Call:  glmnet(x = x, y = y, alpha = 0, lambda = cv_ridge$lambda.min) 
#> 
#>   Df  %Dev Lambda
#> 1  2 82.43 0.5147