Programming the statistical procedures from SAS

Class statement reference

Accepted Solution Solved
Reply
Contributor
Posts: 61
Accepted Solution

Class statement reference

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


Accepted Solutions
Solution
‎07-08-2016 03:43 PM
Grand Advisor
Posts: 16,880

Re: Class statement reference

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

View solution in original post


All Replies
Solution
‎07-08-2016 03:43 PM
Grand Advisor
Posts: 16,880

Re: Class statement reference

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

SAS Super FREQ
Posts: 3,306

Re: Class statement reference

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

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 152 views
  • 3 likes
  • 3 in conversation