As the photo showed, I was running proc phreg for a cox model, when I used proc freq to check the variable 'cig1rp', it was normal. However, when I put it in the multivariable model, SAS always notified that the reference value is invalid. I have no idea where the problem is.
Is there a format applied to variable CIG1RP?
What does PROC CONTENTS say for this variable regarding the presence or absence of a format? Please run PROC CONTENTS on the data set used in PROC PHREG and show us the (relevant parts of the) output.
Corrected: Replaced PROC FORMAT with PROC CONTENTS
This support note has some suggestions:
https://support.sas.com/kb/61/382.html
But agree with Paige, first step is probably to run PROC CONTENTS to make sure that variable does not have a format attached.
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 save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.