I am running a regression with firm-year panel data and am wondering why I get different results using two methods:
1. Create a lead variable then run the regression:
bys firm (year): leadY= F1.Y
reghdfe leadY x1 x2, noa vce(robust)
2. Directly run the regression with the forward operator:
reghdfe F.Y x1 x2, noa vce(robust)
In both cases, I xtset the data with command xtset firm year
Thanks in advance.
1. Create a lead variable then run the regression:
bys firm (year): leadY= F1.Y
reghdfe leadY x1 x2, noa vce(robust)
2. Directly run the regression with the forward operator:
reghdfe F.Y x1 x2, noa vce(robust)
In both cases, I xtset the data with command xtset firm year
Thanks in advance.
Comment