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 treatment years, Difference in differencesFriends, I am using panel data set for individuals * years. Individuals are treated at different y…
Restricted cubic splines with cumulative average methodDear all, I am trying to conduct a restricted cubic spline to assess the potential non-linear associ…
SEM and the predicted latent variableHello I am doing a confirmatory factor analysis, using SEM, to construct three latent variables for…
Why do country-state pair fixed effects within gravity framework drastically change coefficients and significance?I am investigating the effects of migration on trade. My dataset contains approximately 130 countrie…
Difference-in-difference with interactionsHi, I'm trying to estimate a straight forward Difference-in-Difference model to find the impact of …
Subscribe to:
Post Comments (Atom)
0 Response to Question on interaction terms
Post a Comment