BookmarkSubscribeRSS Feed
Lucette
Calcite | Level 5

I am trying to run the code below for SAS 9.4.

 

Does anyone see any errors that would prevent me for setting reference values as shown?

 

proc logistic data=XXX;
by female;
class Health_Lit (ref='0') InsuranceType (ref='2') / order=internal;
model Medadh_c3 (descending) = PHQ8 GAD7 BL_PSS CIRS Health_Lit InsuranceType / link=glogit;
run;

 

Thank you,

LG

2 REPLIES 2
Reeza
Super User

No, but since you've specified the ORDER option, I wonder if you have a formatted value and you're using the internal value.

 

A small note from the documentation:

Specify the formatted value of the variable if a format is assigned.

 

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_logistic_syn...

 

Otherwise, please post your code and error from the log, as well as a PROC CONTENTS from the input dataset.

 

 

Ksharp
Super User

proc logistic data=XXX       descending              ;
by female;
class Health_Lit (ref='0') InsuranceType (ref='2') / order=internal;
model Medadh_c3 = PHQ8 GAD7 BL_PSS CIRS Health_Lit InsuranceType / link=glogit;
run;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 2672 views
  • 0 likes
  • 3 in conversation