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: xtivreg

From   "O'Brien, Rachel H" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: xtivreg
Date   Sun, 14 Aug 2011 17:06:43 -0700

Hi.  I am trying to use xtivreg to run an instrumental variables model with fixed effects.   I keep getting a "matsize too small" error, but I don't understand why or how to get around it, especially since I already have matsize at the maximum (11,000 for Stata/MP).

I am modeling student achievement as a function of one endogenous variable, 2 instrumental variables, 5 control variables, 9 fixed effects for years (entered as dummy variables), 4 fixed effects for grades (entered as dummy variables), and ~1400 fixed effects for schools (entered through xtset).

I run models with school FE all the time, and I have never had this issue before.    In fact, I tried a non-IV model using areg but with the same variables and fixed effects, and it ran without issue.  Is there something special about xtset/xtivreg that is causing my problem?

Any insight would be greatly appreciated.


Rachel O'Brien

*   For searches and help try:

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