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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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