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.

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
  • 1 reply
  • 410 views
  • 0 likes
  • 2 in conversation