statable Statistics for study and research

Ridge, lasso and elastic net (penalized regression)

In brief

A number is predicted from many predictors without the model overfitting the chance features of the sample: a penalty pulls the coefficients towards zero (ridge) or sets unimportant ones exactly to zero (lasso); elastic net mixes both. It is chosen under "More options" → "Model" in the question "Can something be predicted?", for all subjects.

What for

For good predictions when there are many predictors relative to the cases or when they are closely related. Not for testing single effects: after the selection there are no p values.

Requirements

Reading the result

Reporting the result

Lasso (α = 1), λ = 0.417 (one-standard-error rule), 5 × 10-fold cross-validation, MSE = 4.83 (SE = 0.53); 4 of 10 predictors in the model

In the text, name the kind of penalty, the rule for λ, the error of the cross-validation and the word "prediction" - not "effect".

Related

Open in Statable