Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: xtabond2 with time-fixed effects

From   Nick Cox <>
To   "" <>
Subject   st: RE: xtabond2 with time-fixed effects
Date   Mon, 6 Jun 2011 16:59:49 +0100

-xtabond2- is user-written and at most version 9 and does not support factor variables. Try calling it under -xi:- or generate the indicators (dummies) beforehand. 


lreine ycenna

How do I add time-fixed effects onto xtabond2?

In OLS, it would be regress x y z i.year

In system estimation,

xtabond2 x y z , gmm (x y , lag(2 2)) iv(z)  two small

I've tried to have i.year after z and after small but it tells me that

factor variables not allowed

What would be the equivalent function for i.year under xtabond2?

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index