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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 809 views
  • 0 likes
  • 2 in conversation