- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Please can you provide base information. Such as if 1 year increase then risk increse XX amount
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Please can you provide base information. Such as if 1 year increase then risk increse XX amount
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Please follow the instructions for posting questions. Supply example data in a usable form (see my footnotes), the expected result, and the code you already tried.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I see that you have been advised about posting meaningful questions TWICE in your previous posts. Are you allergic to learning?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I'm completly new to SAS .kindly bear with me !
so here is my question..how can i predict a value of a particular variable based on another variable value.
for instace : i have a dataset with variables risk, age and it has values as follows:
12 57
24 67
13 58
56 86
28 59
so on..
So now i need to predict the value of the risk if age increases by 10 years or i can say
'By how much does the risk increase if age increases by ten years?'
any help is highly appreciated.Thank you !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
What you probably need is the average risk per age:
proc sql;
create table avg_risk as
select age, avg(risk)
from risks
group by age;
quit;
Now it is easy to compare relative risks by age.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, @Kurt_Bremser.
I think this credit goes to you, as @urap considered as accepted solution. @urap , is it possible for you to take that off, please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Here’s my question ... how much does the RISK increase if the AGE increases by 10 years?
Ex-
Risk Age
12 57
Data smoking;
Set sasclass.smoking;
Risk_R=67*12/57;
Run;
Proc print data=smoking;
Run;
The value of RISK is 14.1 for the age 67(57+10)
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
To answer this question, you need a statistically sufficient sample for ages 57 and 67.