Hello everyone,
As the title suggests, I've noticed that the four commands above report different panelvar clustering standard errors: xtreg and reghdfe are the same, reg + dummies and areg are the same.
I'm not sure why and I'm wondering which result should be used in my publication?
Any suggestions/discussions are greatly appreciated.
Thank you in advance.
As the title suggests, I've noticed that the four commands above report different panelvar clustering standard errors: xtreg and reghdfe are the same, reg + dummies and areg are the same.
I'm not sure why and I'm wondering which result should be used in my publication?
Any suggestions/discussions are greatly appreciated.
Thank you in advance.
Code:
. webuse abdata, clear
.
. qui xtreg n k w ys i.year, fe vce(cluster id)
. estimate store fe
. qui reg n k w ys i.year i.id, vce(cluster id)
. estimate store lsdv
. qui areg n k w ys, a(year id) vce(cluster id)
. estimate store areg
. qui reghdfe n k w ys, a(year id) vce(cluster id)
. estimate store reghdfe
.
. esttab fe lsdv areg reghdfe, b(9) se(9) drop (*.year *.id _cons) mtit("FE" "LSDV" "areg
> " "reghdfe")
----------------------------------------------------------------------------
(1) (2) (3) (4)
FE LSDV areg reghdfe
----------------------------------------------------------------------------
k 0.547559752*** 0.547559752*** 0.547559752*** 0.547559752***
(0.050708988) (0.054567078) (0.054567078) (0.050708988)
w -0.296876750* -0.296876750* -0.296876750* -0.296876750*
(0.126299732) (0.135908990) (0.135908990) (0.126299732)
ys 0.264825436 0.264825436 0.264825436 0.264825436
(0.152961447) (0.164599208) (0.164599208) (0.152961447)
----------------------------------------------------------------------------
N 1031 1031 1031 1031
----------------------------------------------------------------------------
Standard errors in parentheses
* p<0.05, ** p<0.01, *** p<0.001

Comment