Programming the statistical procedures from SAS

Error message: Invalid reference value for Health_Lit

Reply
Occasional Learner
Posts: 1

Error message: Invalid reference value for Health_Lit

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

Super User
Posts: 18,599

Re: Error message: Invalid reference value for Health_Lit

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.

 

 

Super User
Posts: 9,779

Re: Error message: Invalid reference value for Health_Lit


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;

Ask a Question
Discussion stats
  • 2 replies
  • 169 views
  • 0 likes
  • 3 in conversation