BookmarkSubscribeRSS Feed
LarissaW
Obsidian | Level 7

Screenshot 2025-06-17 092109.pngScreenshot 2025-06-17 092218.png

 

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.

2 REPLIES 2
PaigeMiller
Diamond | Level 26

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

--
Paige Miller
Quentin
Super User

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.

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 414 views
  • 2 likes
  • 3 in conversation