Statalist


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

Re: st: Panel with minimum observations


From   Christian Bustamante <[email protected]>
To   [email protected]
Subject   Re: st: Panel with minimum observations
Date   Sun, 15 Mar 2009 14:56:15 -0500

Thanks for your answers Joseph and Nick.
I have another problem. When I tried to run -xtgls- Stata saids:

insufficient memory for temporary matrix
    You need to increase the size of memory; see help memory.
r(950);

In a previous ocassion I ran the same command in the same laptop, I
don't kwon what happens. Also, after I could assign more than 1gb to
memory (I have 3gb of RAM), but now I can only assing 500mb.... what's
going on?


On Sun, Mar 15, 2009 at 11:37 AM, Nick Cox <[email protected]> wrote:
> -egen- is a slip here for -gen-. But you could do this without any new variables at all.
>
> bysort myid : drop if _N <= 2
>
> That said, I support Joseph's last paragraph strongly.
>
> Nick
> [email protected]
>
> Joseph McDonnell
>
> . sort myid
> . by myid: egen myN=_N
> . drop if myN<=2
>
> Of course, dropping is quite a severe step. You might prefer to use
> one of the 'mark' commands or just use the 'if' qualifier.
>
> Christian Bustamante
>
>> I runing a panel data model with a large dataset. The panel is
>> unnbalanced, so there is individuals with one or two observations. I
>> don't want to use this observations in my model, how can I set it?
>
> *
> *   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/
>



-- 
CdeB

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index