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.

The Boston Area SAS Users Group is hosting free webinars!
Next up: Lisa Mendez & Richann Watson present Get Tipsy with Debugging Tips for SAS® Code: The After Party on Wednesday Jul 16.
Register now at https://www.basug.org/events.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 261 views
  • 2 likes
  • 3 in conversation