(posted on behalf of my colleague Mylene):
Hello
I am a graduate student in the USA and new-ish to Stata, working on my masters in Psychology using Stata to help analyze my data.
I have run a series of univariable regressions of 10 different variables, both ordinal and continuous, on my main dependent variable of interest: l_score
Sex was found to be significant and is known, a priori, to associate with l_score and possibly be an effect modifier of other variables of interest, on l_score.
I am wondering if it is possible to stratify all my univariable regressions by sex? How might I do this?
And then also, if I am trying to examine the interaction between sex and other variables (let's say "g_score") on "l_score" would I run the following code?
regress l_score sex g_score sex#g_score
Thanks so much for any help
Best wishes
Mylene
Hello
I am a graduate student in the USA and new-ish to Stata, working on my masters in Psychology using Stata to help analyze my data.
I have run a series of univariable regressions of 10 different variables, both ordinal and continuous, on my main dependent variable of interest: l_score
Sex was found to be significant and is known, a priori, to associate with l_score and possibly be an effect modifier of other variables of interest, on l_score.
I am wondering if it is possible to stratify all my univariable regressions by sex? How might I do this?
And then also, if I am trying to examine the interaction between sex and other variables (let's say "g_score") on "l_score" would I run the following code?
regress l_score sex g_score sex#g_score
Thanks so much for any help
Best wishes
Mylene
Comment