03-09-2012 01:10 PM
I have the data like the following. disease=1 means having the disease; disease=0 means no disease. Can I draw the cumulative risk graph? The x-axis is the response (continuous variable), y-axis should be the cumulative risk (probability??) of having the disease. How can I do it? Thanks!
input response disease;
03-09-2012 01:20 PM
Possibly dumb question, but if you have the disease isn't your probability of cumulative risk of having the disease 1?
If you're getting the cumulative risk data from a proc some have the ability to plot them from within the procedures.
If not you could use Proc SGPLOT.
03-09-2012 01:57 PM
I'm not sure what your data represents.
My guess is it looks like survival data based on your question and then you'd use proc lifetest or proc phreg.
0/1 is your censor variable and response is the time to either having the disease or not, if its not a time measurement then reply back.
Try proc lifetest and check the options.
03-09-2012 02:11 PM
I think you've posted before about this and again the question is still too general to give any comments without more specifics.
If you can't post more details then I recommend finding some similar published articles and seeing what method they used, ie logistic, survival, and then more help could be provided around the specific procedure rather than a general question..
03-09-2012 02:26 PM
My response variable is one measurement for the patient, like the blood pressure, height, BMI....
My research question is to see: with the measurement differing, what is the risk for a person to get the disease (disease=1).
Please let me know if you have other questions. Thanks!
03-09-2012 03:05 PM
Ok, I guess with that type of data, I'd be looking at a logistic regression and odds of getting the disease.
See Example 51.13 Complementary Log-Log Model for Infection Rates
In the SAS 9.2 Docs.
The last table plotted should help give you what you're looking for.