Dear Stata experts,
I'm trying to test several GLM models. I have two independent variables (X and Y). X is binary and Y is continuous. The dependent variable (Z) is binary. I also have two moderators (M and N).
According to my understanding, if I only have one independent variable (X), the models are like this:
Model 1 (Empty model): Z = M + N + control variables
Model 2 (Main effect): Z = X + M + N + control variables
Model 3 (Moderating effect M): Z = X + X*M + control variables
Model 4 (Moderating effect N): Z = X + X*N + control variables
Model 5 (Full model): Z = X + X*M + X*N + control variables
Now since I have two IVs X and Y, and I want to test the moderating effects of M and N on both X and Y. How should I add Y, Y*M, and Y*N in the models? Should I just repeat Model 1 through Model 5 by replacing X with Y? Or should I put X and Y together in the five models?
Thank you very much for helping!
Related Posts with How to fit GLM models with two independent variables and two moderators?
xtabond2: two way clustering-dynamic panelHello all. For my master thesis I am trying analyse what are the determinants of Non Performing Loan…
How to save the "drift" parameter of a Dickey-Fuller unit-root test (dfuller)?I would like to save the "drift" parameter of a Dickey-Fuller unit-root test, in order to export it …
How to merge different Excel File.Hello Sir, I have 4 separate -excel files required to merge in one excel file. This is the longitud…
Autocorrelation (ac and pac)I'm using the autocorrelation command ac and the partial autocorrelation command pac. I'm running th…
Understanding Abadie, Athey, Imbens, and Wooldridge (2017) using a long-difference exampleThere are 100 counties j. There are many people in each county. People do not move across counties f…
Subscribe to:
Post Comments (Atom)
0 Response to How to fit GLM models with two independent variables and two moderators?
Post a Comment