- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Tags:
- computation errors
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.