I have a regression with an endogenous variable for which I have an instrument.
By computing
ivreg income (immigrants=enclave) YearDummy*
I obtain a given coefficient.
If instead i first compute the first stage and then regress the dependent variable on the exogenous fitted value of the endogenous variable I obtain a completely different result.
reg immigrants enclave YearDummy*
predict immhat, xb
reg income immhat YearDummy*
If I'm not mistaken the result shoud be the same, as a 2sls regression is computed that way. Is there a reason why this is actually not the case?
Related Posts with Difference between manual 2sls and ivregress
Generate an initiale value for each five year interval in unbalanced panel dataHi dear Statalister, I have an unbalanced panel data and i want to generate a new variable. This var…
F test for cof.Hello everyone, My model is: Y = b0 + b1.x1 + b2.x2 + b3.x3 + e and I use GMM for this model. I wa…
Panel data with three identifiersDear All, I am currently working with a country-year panel dataset which has data for value added f…
Split to multiple files, merge and appendI have two files, each with 3 variables. The first one has date, city, and score. The second one ha…
Loop for running individual regression for sectors and then taking average of all coefficientsHi, I have to run three regressions , from three separate files and then take a mean of all explanat…
Subscribe to:
Post Comments (Atom)
0 Response to Difference between manual 2sls and ivregress
Post a Comment