Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72762

xtivreg2 gives different standard error than xtivreg (or ivreg) and ivreg2 for panel data

$
0
0
Dear all,

Consider the following codes which uses the same data but uses four different functions:

:
webuse grunfeld, clear
qui tabulate company,gen(com)
qui tabulate year,gen(yr)
//1: use xtivreg (with two-way fixed effects)

:
xtivreg mvalue (invest= kstock) yr*,fe
//2. use xtivreg2 (with two-way fixed effects)
:
xtivreg2 mvalue (invest= kstock) yr*,fe

//3: use ivreg (with two-way fixed effects)

:
ivreg mvalue (invest= kstock) yr* com*
//4. use ivreg2 (with two-way fixed effects)
:
ivreg2 mvalue (invest= kstock) yr* com*
Summary:
ivreg and xtivreg yield the same standard error. However, ivreg2 and xtivreg2 give different standard errors (also different from
standard error of xtivreg (or ivreg)). I would appreciate if someone could highlight the reason for difference.

Thank you.

Viewing all articles
Browse latest Browse all 72762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>