FIXED-EFFECTS MODEL

1 コードの例

データの読み込み。参考

use http://dss.princeton.edu/training/Panel101.dta

*パネルとして認識

xtset country year

下記のいずれでも可能。

xtreg y x1,fe

areg y x1, absorb(country)

xi: regress y i.country x1 i.country

参考:OLSを含めた係数の比較

xtreg yx1x2x3,fe
estimates store
fixed
xi: regress y x1 x2 x3 i.country
estimates store ols
areg y x1 x2 x3, absorb(country)
estimates store
areg
estimates table fixed ols areg, star stats(N r2 r2_a)

<参考文献>

ttp://www.princeton.edu/~otorres/Panel101.pdf


 

最終更新:2015年08月19日 18:54