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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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