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
>=80Following 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!!
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.