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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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