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!!
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.