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.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

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