Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: xtivreg


From   "O'Brien, Rachel H" <rhobrien@stanford.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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.

Thanks!

Rachel O'Brien


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index