BookmarkSubscribeRSS Feed
deleted_user
Not applicable
If I want to include missing value category in proc phreg procedure. how do I do it?
Specifically, I have 3 levels of income: 1, 2 amd 99 (unknown). How do I set 99 to missing yet include it in analysis so that I would not lose other observations?

Thanks very much! Message was edited by: natasha85
3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12
Rather sounds like you want to treat it as missing some times and not others. That calls for multiple variables.

There are a several approaches to attack the problem. 1) and 2) model the effect of missing explicitly and are reasonable when there is moderate missing data so the model has enough power. It is particularly valuable if the missingness is not at random. 3) applies different principles and is much more useful when the presence of missing is more of a nuisance.

1) Leave it as 3 levels and treat it as a class variable.
2) Equivalently, and I find this to be more interpretable.
-- create a new variable IncomeMiss that is coded 0/1, with the 1 as missing and 0 otherwise.
-- recode income to 0/1 with the level of interest being the 1, and 0 otherwise.
-- put both variables in the model as continuous.
Then the effect of Income level 1 is measured by the coefficient for income and the effect of missing income is captured in the other variable.
3) Apply PROC MI and MIANALYZE.

Doc Muhlbaier
Duke
ArtC
Rhodochrosite | Level 12
If income is a classification variable, you can specify the MISSING option on the CLASS statement. Missing levels of the classification variable will be included in the analysis.
deleted_user
Not applicable
Thank you all!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1108 views
  • 0 likes
  • 3 in conversation