BookmarkSubscribeRSS Feed
floflow
Calcite | Level 5

Hi,

 

I am currently doing multi-level-regressions, looking at the link between sleep and social media use. 

 

proc surveylogistic data=sleep; *unadjusted;
cluster id2;
class smu (ref='active');
model sleep_rec (event='not meeting sleep recommandations') = smu;
weight wtcan;
run;

 

I want to add sensitivity analysis to see if there are gender differences in different social media use categories. 

 

I have no idea where to start. 

 

Thank you so much 

 

 

2 REPLIES 2
PaigeMiller
Diamond | Level 26

How about this:

 

proc surveylogistic data=sleep; *unadjusted;
cluster id2;
class smu (ref='active') gender;
model sleep_rec (event='not meeting sleep recommandations') = smu gender smu*gender;
weight wtcan;
run;
--
Paige Miller
floflow
Calcite | Level 5
That works!
Thank you so much!

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 2 replies
  • 399 views
  • 0 likes
  • 2 in conversation