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
- /
- SAS Programming
- /
- General Programming
- /
- Interaction between two continuous variables- how ...

Topic Options

- 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
- RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

12-09-2013 04:30 PM

Hello,

I have an interesting and strong interaction between two continuous variables (age and a blood marker), and would like to be able to estimate the outcome variable based on three ages of interest and varying levels of this biomarker.

Questions:

1. I have tried to set up Estimate statements, but am not sure how to handle these without a categorical variable (below- question marks are the concern area). Any suggestions?

2. If I wanted to plot the blood markers versus the outcome variable at these fixed ages, what is the best way to do this in SAS? Including an estimate of slope and 95% confidence interval for both?

**proc** **glm** data=prac;

class gender hypertension ;

model outcome=age education gender hypertension bloodmarker age*bloodmarker/solution clparm ;

estimate intercept **1** education **12** bloodmarker **.5** age **60** bloodmarker*age **?????** /E;

estimate intercept **1** education **12** bloodmarker **1** age **60** bloodmarker*age ????? /E;

estimate intercept **1** education **12** bloodmarker **1.5** age **60** bloodmarker*age **?????** /E;

estimate intercept **1** education **12** bloodmarker **.5** age 7**0** bloodmarker*age **?????** /E;

estimate intercept **1** education **12** bloodmarker **1** age 7**0** bloodmarker*age ????? /E;

estimate intercept **1** education **12** bloodmarker **1.5** age 7**0** bloodmarker*age **?????** /E;

estimate intercept **1** education **12** bloodmarker **.5** age 8**0** bloodmarker*age **?????** /E;

estimate intercept **1** education **12** bloodmarker **1** age 8**0** bloodmarker*age ????? /E;

estimate intercept **1** education **12** bloodmarker **1.5** age 8**0** bloodmarker*age **?????** /E;

**run**; **quit**;

Thank you!!!!

Bri

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

Posted in reply to Brilanka

12-10-2013 07:45 AM

You may wish to go at this a different way, as these estimates average over gender and hypertension status, and I'm not sure if that is meaningful. It could be, and I am misinterpreting what you are asking, but would using the AT option in an LSMEANS statement be a possibility?

For instance, the predicted means of gender at the various values could be obtained with:

lsmeans gender/at bloodmarker=0.5 age=60;

lsmeans gender/at bloodmarker=1 age=60;

and so forth.

Steve Denham