BookmarkSubscribeRSS Feed
liiiiiiiib
Calcite | Level 5

I am using proc surveylogistic to analyze the relationship between independent variables and dependent variables, and I want to control variables such as gender and age. What statement is more appropriate ? 

proc surveylogistic data=sasuser.nsleepall2 nomcar varmethod=taylor;
strata sdmvstra; cluster sdmvpsu; weight wtmec14yr;domain sub;
class slptimecat(param=ref ref="2") ;
model microcat(desc)=slptimecat/vadjust=none; /*how to add opptions?*/
title "relationship between micro and slp";
run;
1 REPLY 1
StatDave
SAS Super FREQ
Simply include gender and age as predictors in your model.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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