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.
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.