Hi guys!
I'm using 2SLS on Panel Data, however when I calculate 2SLS manually, I mean, by doing:
First Stage:
reg x1 x2 z1 z2, robust
predict x1_hat
Second Stage:
reg y x1_hat x2
I am not sure if these are the right commands, do I need to use xtreg on the same steps instead of using just reg? Because when I use the command:
ivreg2 y x2 (x1=z1 z2), robust
I am not getting the same coefficients as the manual method, so that's why I am not sure of what method I should use. I was thinking of using xtivreg2, but I am not sure.
What do you think?
PS: I am not using fixed effects
Related Posts with 2SLS on Panel Data
Cross-sectional regressionDear all, I would like to get the residual of cross-sectional regression for every industry-year com…
Define a dummy with overlapping periodsDear All, I have this dataset Code: * Example generated by -dataex-. To install: ssc install dataex…
Stata Command "myqreg2" exists?I found a do file online where a very renowned economist used "myqreg2" command while estimating qua…
sample size for test accuracyIs there a preferred method for estimating the required sample size for testing the accuracy of a go…
Parallel trends graph for staggered difference-in-differencesMost papers that use staggered difference-in-differences seem to use regression evidence instead of …
Subscribe to:
Post Comments (Atom)
0 Response to 2SLS on Panel Data
Post a Comment