BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
wajmsu
Obsidian | Level 7

Hi,

When multivariable analysis is carried out, multiple variables may utilize class statement at the same time but all would have different categories as reference. How would we use them? Below is a code, please guide me is this correct?

 

proc logistic data=pe.matchedata_21;
strata group;
class birthsea (ref='1') CMV_ca_2_1 (ref='2') sex (ref='1');
model PEstatus (event='1')= birthsea CMV_ca_2_1 sex;
run;

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Your code is correct. As mentioned earlier set the parameterization method.

View solution in original post

2 REPLIES 2
Reeza
Super User

Your code is correct. As mentioned earlier set the parameterization method.

Rick_SAS
SAS Super FREQ

Yes, your code is correct. To read more about the various parameterizations that SAS offers for classification variables, see the following:

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
  • 1618 views
  • 3 likes
  • 3 in conversation