01-27-2017 04:40 AM
I have a variable age_band in my data & when I try to run a proc logistic using the same as a predictor it generates a note :
NOTE: Some observations in the WORK.score_file data set are not scored because they have class levels that are missing or are not present .
The variable values looks like this :
Age 18-29 30-39 40-49 50-59 999 >=80
Following is the code that I have used:
proc logistic data = train_new desc plots(only)=roc; class age /missing ; model Target = age/ pevent=.08 rsquare lackfit ; score data = score_file out = predict_score_file ; run;
Can some one help out in rectifying this? Thanks in advance!!
01-27-2017 09:46 AM
01-27-2017 11:07 AM
In your previous post https://communities.sas.com/t5/SAS-Statistical-Procedures/Missing-option-in-class-statement-proc-log... Rick provided the answer: Your data does not match the SCORE data set. If you have combinations of variables that were not used in creating the SCORE data set then the score option does not know what to do with them at all.
Run Proc freq on the variable in both datasets and you will likely see that the number of levels does not match.