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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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