Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: mat size


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: mat size
Date   Fri, 3 Nov 2006 09:19:02 +0100

Ines:
Your original question was how to estimate: 
-xi: reg perform i.codempr- if codeempr has 1203 values.
If you want to enter other variables to explain perform 
than -xtreg- with the fe option is very much the 
preferred method of doing it. In that case you would 
type -xtreg perform othervariables, fe i(codempr)- But 
if you don't want to add any other explanatory 
ariables, then all you want to do is to estimate a mean 
of perform for every value of codeempr. That is easier 
achieved with -collapse mean perform, by(codeempr)-. 
Neither of these solutions would require you to have a 
matsize of over 800. 
HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of irodriguez
Sent: donderdag 2 november 2006 23:30
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: RE: mat size

I had Stata Intercooled but now Ive Stata/SE How can I increase mat size
above 800?

Thanks a lot

Ines

-----Original Message-----
From: "Nick Cox" <n.j.cox@durham.ac.uk>
To: <statalist@hsphsun2.harvard.edu>
Date: Wed, 1 Nov 2006 13:21:00 -0000
Subject: RE: st: RE: mat size

> Stata is telling you exactly what is wrong
> with your command.
>
> If you are using Intercooled Stata, that is
> the end of the road for that command, as you
> cannot increase -matsize- above 800.
>
> If you are using Stata/SE or Stata/MP, you
> can, and must, increase -matsize-.
>
> In any case, I am not clear that you are doing what
> Maarten recommended. I understand that he recommended
> -xtreg, fe-, and that you not use -xi:-.
>
> Nick
> n.j.cox@durham.ac.uk
>
> irodriguez
> 
> > Ive tried this:
> >     xi: xtreg perform i.codempr, fe i(codempr)
> >
> > But the outcome is similar:
> >  i.codempr         _Icodempr_1-1203    (naturally coded; _Icodempr_1
> > omitted)
> >  matsize too small
> >  You have attempted to create a matrix with more than 800
> > rows or columns
> >  or to fit a model with more than 800
> >  variables plus ancillary parameters.  You need to increase
> > matsize using
> > the
> >  set matsize command; see help matsize.
> >  r(908);
> >
> > What Im doing wrong?
>
> Maarten Buis
>
> > > Apparently you are trying to estimate a fixed effects regression by
> > > adding
> > > dummies. A better way of doing the fixed effects regression
> > is -xtreg-
> > > with
> > > the fe option. see: -help xtreg- and the entry for -xtreg- in the
> xt
> > > manual.
>
> irodriguez
> 
> > > I am trying to run a OLS regression with panel data (8240
> > observations)
> > > The explaining variable have 1203 categories
> > >
> > > I estimate the following model:
> > >     set mem 50m
> > >     set matsize 800
> > >     xi: reg perform i.codempr
> > > but the outcome is:
> > >
> > > i.codempr         _Icodempr_1-1203    (naturally coded; _Icodempr_1
> > > omitted)
> > > matsize too small
> > >     You have attempted to create a matrix with more than 800 rows
> or
> > > columns
> > > or to fit a model with more than 800
> > >     variables plus ancillary parameters.  You need to
> > increase matsize
> > > using
> > > the set matsize command; see help matsize.
> > > r(908);
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index