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".

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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