Hello everyone, I am running two multiple linear regression models where the first one needs to have an interaction term between the dummy variable female (1 = female, 0=male) and a categorical variable beauty. The first model needs to have the interaction term between female and beauty, and the second one between male and beauty. I've read that i.female##c.beauty will give me the interaction term between the two variables but how should I write the regress in order to have an interaction term between female and beauty and male and beauty? I have tried the following: for the model with the interaction term between female and beauty I used regress with 1.female##c.beauty and 0.female##c.beauty for the second model but I don't know if this is the correct way to write it and if this is giving me the results I want. I also don't really understand the difference between # and ##.
Related Posts with Question on interaction terms
multiple imputation (MICE) and varying estimation sample!Hello, I am building a regression model for ethnicity as a categorical exposure variable and death a…
precoin error 3301When I run precoin using the sample data of 100 obs, it works successfully. However , it doesn't wor…
CI 95% generated by Meta set is slightly different than the CI generated by Metan codeI have been using STATA 14 for so long and I have run a lot of meta-analysis with no trouble. Recent…
Advice on suitability of panel design for studyHi all, I am under the impression that the panel format is not appropriate for my study and am stro…
Fixed Effects Regressions with Time and Individual Fixed EffectsHello, The following questions are to essentially check whether I am carrying out the correct econo…
Subscribe to:
Post Comments (Atom)
0 Response to Question on interaction terms
Post a Comment