BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jjadalla
Obsidian | Level 7

Hello!

I used the following code:

proc surveyreg data= econ.zenobia1;
class admitdiagcode1 occupationcode1 maritalstatuscode1 religioncode1
pobcode1 ethnicitycode1 bookingcode1 facilitycatcode1
facilitystatcode1 emergencycode1 pregnantcode1 wardcode1;
Model lengthofstay = admitdiagcode1 ageyrs parity educationcode monthcode
Occupationcode1 maritalstatuscode1 religioncode1 pobcode1 ethnicitycode1
Bookingcode1 facilitycatcode1 facilitystatcode1 emergencycode1
Pregnantcode1 wardcode1 / solution adjRsq;
run;

I received the attached results.

 

AdmitDiagCode1 is my independent variable of interest.  I want an estimate to be provided for the 1 value of the categorical variable (NOT the 0 value).  How do I code that?

 

Thank you so much!

 

God bless, best regards, and take care,

Jadallah

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

Tell SAS which is your reference level with the ref option in the class statement

 

class admitdiagcode1(ref='0') ...

PG

View solution in original post

2 REPLIES 2
PGStats
Opal | Level 21

Tell SAS which is your reference level with the ref option in the class statement

 

class admitdiagcode1(ref='0') ...

PG
jjadalla
Obsidian | Level 7

Thank you!  God bless you and your family!

Jadallah

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

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1188 views
  • 0 likes
  • 2 in conversation