Aug 8, 2024
Statistics > Lasso
.web use fake survey
VL
commands to define variable groups:
VL set
identifies categorical and continuous variables.uncertain zero
option to omit uncertain groups.VL_categorical
VL_continuous
lasso linear
for dependent variable q104
.if sample == 1
for training data fitting.CV plot
to create graph of lambda vs. cross-validation function.estimates store CV
.lasso knots
to create a model information table:
CV plot
.selection adaptive
:
adaptive
.lasso Co F
to view selected variables across models.lasso gof
to evaluate fit on training vs. testing samples: