turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- about the cumulative risk graph

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-09-2012 01:10 PM

Hi,

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!

data test;

input response disease;

cards;

45.6 1

190 0

34.5 1

89 0

56 1

45 1

58 0

.......

........

;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to twotwotwo

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

03-09-2012 01:50 PM

Thanks for your reply. Probably I should ask how to calculate the cumulative risk? Do you know any proc can do it? Thanks!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to twotwotwo

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

03-09-2012 02:05 PM

Thanks Reeza! It is not a survival data. The response is a measurement for a patient. For this kind of data, how can I do it? Thanks!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to twotwotwo

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

03-09-2012 02:15 PM

Hi, Reeza,

I did not post this question before. What other information do you want for this question?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to twotwotwo

03-09-2012 02:17 PM

What's your response variable?

What's your research question that you're trying to answer?

Is this hw?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

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!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to twotwotwo

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Reeza

03-09-2012 03:51 PM

Thanks! I then found that the effectplot is what I want....