Hello,
I am trying to use LASSO regression to select micronutrient and lifestyle variables. I learned to apply the glmselect. My challenge is when using the NHANES complex survey data, does the weight statement alone can capture these design parameters or not.
could not find a single example code/ training to do LASSO for complex survey structures in SAS
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7551912/pdf/nutrients-12-02652.pdf (NHANES, LASSO, using R software)
My outcome of interest is a continuous variable, predictors (29- both continuous, and multilevel categorical)
Sub-population sample size is around 4000. I am new to LASSO regression, thus appreciate your advice.
proc surveyreg data= NHANES2001_2002;
weight wtint2yr;
cluster sdmvpsu;
strata sdmvstra;
class female;
model pad630 = female / noint solution vadjust = none;
contrast 'comparing males and females' female 1 -1;
format female fm.;
run;
SAS Survey procs currently do not support any automatic variable selections including LASSO methods.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.