Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Achieng
Quartz | Level 8
proc logistic data=work.combine0002;
CLASS IstherespondenttheHHhea/ param=reference;
MODEL y =IstherespondenttheHHhea foodpast4wks_07_1a foodpast4wks_07_0a
foodpast4wks_07_3a /lackfit;
 run;

ERROR: Computations are terminated because the number of response levels, 264, exceeds MAXRESPONSELEVELS=100.

 

this is the error I am getting after running this code. I don't know what to do. Please help 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

The most common use of logistic regression is to predict a binary variable. Thus (often) your Y variable would have only two values 0 and 1.

The error is saying that your Y variable has more than 100 levels. Probably you are either 

1. Using the wrong variable as the response. Is there a different variable that is binary?

2/ Using the wrong procedure. If Y is a continuous variable (rather than binary), then you should use PROC GLM or some other variable that models continuous responses.

 

View solution in original post

1 REPLY 1
Rick_SAS
SAS Super FREQ

The most common use of logistic regression is to predict a binary variable. Thus (often) your Y variable would have only two values 0 and 1.

The error is saying that your Y variable has more than 100 levels. Probably you are either 

1. Using the wrong variable as the response. Is there a different variable that is binary?

2/ Using the wrong procedure. If Y is a continuous variable (rather than binary), then you should use PROC GLM or some other variable that models continuous responses.

 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 1 reply
  • 3418 views
  • 0 likes
  • 2 in conversation