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
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.
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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.