Hi All,
Im doing a simple linear regression. It has main and interaction terms, and some covariates:
regress LUF_AD_std c.d3_SympADHD_std##c.c3_c4_rs_std i.ChildGender c3_childage WB_AD_std
I have run the same model using dichotomous variables (d3_SympADHD_std in the categories ADHD or NO ADHD; and c3_c4_rs_std to say YES or NO the if the children have langauge disorders). When I do the dichotomous variables, I can use the margins and marginsplot function to get a graphical view of the main and interaction terms.
But when I use the continuous variables, I can't figure out what the command is to plot the interaction. I've tried searching for this, but all I get is long-winded and rather complicated explanations of how to do this for 'particular levels of the IV' e.g. https://www.youtube.com/watch?v=QFROtui_OyM
I would have thought this was a simple command. SPSS provides a plot of the interaction term for continuous variables. Why is it so hard to find the equivalent command in stata?
Can anyone please help with this?
Many thanks
Hannah
Im doing a simple linear regression. It has main and interaction terms, and some covariates:
regress LUF_AD_std c.d3_SympADHD_std##c.c3_c4_rs_std i.ChildGender c3_childage WB_AD_std
I have run the same model using dichotomous variables (d3_SympADHD_std in the categories ADHD or NO ADHD; and c3_c4_rs_std to say YES or NO the if the children have langauge disorders). When I do the dichotomous variables, I can use the margins and marginsplot function to get a graphical view of the main and interaction terms.
But when I use the continuous variables, I can't figure out what the command is to plot the interaction. I've tried searching for this, but all I get is long-winded and rather complicated explanations of how to do this for 'particular levels of the IV' e.g. https://www.youtube.com/watch?v=QFROtui_OyM
I would have thought this was a simple command. SPSS provides a plot of the interaction term for continuous variables. Why is it so hard to find the equivalent command in stata?
Can anyone please help with this?
Many thanks
Hannah
Comment