BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Lao_feng
Obsidian | Level 7

Dear all,

I am doing an analysis to look at the association between a number of potential risk factors (age, gender, education, marital status, wealth index etc.) and risk of developing diabetes. Normally, logistic regression using "Proc logistic" should be fine for this analysis. But in my study, we used clustering sampling method (30 clusters in total) to enroll study participants. Therefore, I used " Proc glimmix" (SAS 9.4)instead to account for clustering effect. However, it seems that "Proc glimmix" cannot do automated variable selection like "Proc logistic" does. Does anyone know if there is a way to do automated variable selection while modelling clustering effect as well ?

Here are the codes:

proc glimmix data=diab NOCLPRINT;

class country2(ref='Pk')clu_num fam_num2 gender edu2g mar2g ;

model diab(ref='0')= country2 age_y9 gender edu2g mar2g wic/solution Link=logit dist=binary

oddsratio (label unit age_y9=5 UNIT WIC=21);

random int /sub=clu_num (country2);

random int /sub=fam_num2(clu_num country2) type=vc;

run;

 

 

Thanks a lot !

 

Feng Liang

 

1 ACCEPTED SOLUTION

Accepted Solutions
pau13rown
Lapis Lazuli | Level 10

" information criteria can be used to select a best fitting covariance structure" https://communities.sas.com/t5/SAS-Statistical-Procedures/proc-glimmix-selection-stepwise-or-backwar...

 

automated is maybe not the best approach anywy, variable selection should be informed by clinical reasong and not entirely data-dependent, just my opinion

View solution in original post

1 REPLY 1
pau13rown
Lapis Lazuli | Level 10

" information criteria can be used to select a best fitting covariance structure" https://communities.sas.com/t5/SAS-Statistical-Procedures/proc-glimmix-selection-stepwise-or-backwar...

 

automated is maybe not the best approach anywy, variable selection should be informed by clinical reasong and not entirely data-dependent, just my opinion

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1265 views
  • 1 like
  • 2 in conversation