BookmarkSubscribeRSS Feed
wajs
Fluorite | Level 6

Hi,

When I run binary logistic regression, I put values for outcome categories as case=1, control=0. 

Does this apply to SAS also, or I can put values as case=1, control=2?

Thanks

Abdul Wajid

2 REPLIES 2
ballardw
Super User

You can use just about any two levels you like, including character if using Proc logistic.

You an specify which even is of interest using event syntax such as

 

model: variable(event='A') = <predictors>

or

model: variable(event='2') = <predictors>

 

The default would be event=first which would be the first ordered category. You can specify either a formatted value or key words First and Last for event. Other options can affect the order considered such as DESCENDING , ORDER= .

The documentation has several worked examples.

wajs
Fluorite | Level 6

Thanks!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 590 views
  • 1 like
  • 2 in conversation