Hello
I am looking at the interaction between age (dichotomized as above OR below 65 years) and sex (men versus women) on the functional outcomes of therapy. In my model, I would like to insert 3 independent variables: age sex agexsex
While creating the interaction variable, I just created a column of data representing agexsex. Following this, I conducted regression analysis using SAS code:
Proc reg data = Knee_gender_interaction2;
model IADL_6months = age sex agexsex/stb clb;
model functions_6months = age sex agexsex/stb clb;
run;
The problem I run into is that SAS is not allowing me to get the beta estimate for the interaction term agexsex, by suggesting that the age-sex is the linear product of age and sex which are also present in the model.
I read somewhere that I should create a summy variables to test the effect of all 3 independent variables: age, sex, and agexsex.
Can somebody suggest teh SAS coding for creating the dummay variable and subsequent regression model?
Thank you much.
Saurabh
Did you create your sex indicator as a {0 ,1 } indicator? If not, do so-- and use this new sex indicator to also create your interaction product. Then retry in proc reg.
See the answer to a similar type of question posted here.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.