BookmarkSubscribeRSS Feed
lsak
Calcite | Level 5

 

This is my code to get OR and CIs. 

 

PROC LOGISTIC DATA=thesis;

CLASS RUCA_3CAT (ref = "Urban") / PARAM=REF;
MODEL mdro_res (EVENT = "negative") = RUCA_3CAT / ALPHA=0.03125;
RUN;

 

I am getting "Invalid reference value for RUCA_3CAT"

the categories for this are: urban,rural, suburban and for mdro_res: positive and negative

 

 

Can someone help me figure out what's wrong with my code? 

 

thanks 

 

2 REPLIES 2
StatDave
SAS Super FREQ
The value you specify in the REF= option must be the exact value (formatted value if the variable is formatted) including any spaces and with identical upper/lower case.
ballardw
Super User

Just to be pedantic:  "Urban" is not equal to "urban".

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 308 views
  • 6 likes
  • 3 in conversation