Hello everyone, thank you for taking the time to read my post.
I have a question about running panel GMM, and I am using STATA 17 for this purpose.
Let me provide a brief overview of my dataset:
Below is an example of my dataset.

Now, in addition to the 2-way interactions (X1, X2), I also have 3-way interactions (X1, X2, and X3) as follows:
However, a challenge arises due to the fact that X3 is a yearly variable, making it time-invariant for at least for each year. Consequently, taking first differences will lead to its elimination.
Here is what I have attempted so far, but I believe it is incorrect
(1) Dynamic GMM
Q1. Although x3 is exogenous, interactions with endogenous variables are included in gmm(). What would happen to the x1*x3 and x1*x2*x3? Will they be eliminated because x3 is first differenced?, or is it acceptable since I have placed x3 in the iv()? I am unsure about the correct approach here.
(2) System GMM
Q2. In system GMM, we use level data and the first differenced variables as instruments. So, I guess x1*x3 and x1*x2*x3 will not be eliminated this time, but what about x3 as an instrument? first differencing x3 will eliminate x3. Should I remove c.x1#c.x2#c.x3 inside gmm()? Likewise, I want to know the correct approach.
Thank you in advance.
I have a question about running panel GMM, and I am using STATA 17 for this purpose.
Let me provide a brief overview of my dataset:
- Y: dependent variable - measured weekly
- X1: endogenous variable – measured weekly
- X2: endogenous variable – measured weekly
- X3: exogenous variable – measured yearly
- X4: exogenous control variable – measured yearly
Below is an example of my dataset.
Now, in addition to the 2-way interactions (X1, X2), I also have 3-way interactions (X1, X2, and X3) as follows:
- X1*X2
- X1*X3
- X1*X2*X3
However, a challenge arises due to the fact that X3 is a yearly variable, making it time-invariant for at least for each year. Consequently, taking first differences will lead to its elimination.
Here is what I have attempted so far, but I believe it is incorrect
(1) Dynamic GMM
Code:
xtabond2 y l.y x1 x2 x3 c.x1#c.x2 c.x1#c.x3 c.x1#c.x2#c.x3 x4, gmm(l.y x1 x2 c.x1#c.x2 c.x1#c.x2#c.x3) iv(x3 x4, equation(level)) noleveleq
(2) System GMM
Code:
xtabond2 y l.y x1 x2 x3 c.x1#c.x2 c.x1#c.x3 c.x1#c.x2#c.x3 x4, gmm(l.y x1 x2 c.x1#c.x2 c.x1#c.x2#c.x3) iv(x3 x4, equation(level))
Thank you in advance.
Comment