Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: xtivreg, fd

From   "Antonio Rodrigues Andres" <>
To   <>
Subject   st: xtivreg, fd
Date   Fri, 30 Apr 2004 13:04:56 +0200

Dear Stata users
I am trying a simple dynamic model with the lagged value of the dep.
variable as regressor. I pretend to obtain the Anderson-Hsiao estimator
using yit-2 as instrument but i did not succeed. I should get the same
results using xtivreg, fd and ivreg with the differenced variables

Does anybody knows why not

sort country year
by country: gen lsrt_1=lsrt[_n-1]
by country:gen lsrt_2=lsrt[_n-2]
gen dlsrt=lsrt-lsrt_1
gen dlsrtl=lsrt_1-lsrt_2

Model yt=  alpha* yt-1 + eta _i +ut
variables have been already differenced

ivreg dlsrt (dlsrtl=lsrt_2) using yit-2 as instrument

tsset country year
xtivreg lsrt (lsrt_1=lsrt_2), i(country) fd

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index