Bookmark and Share

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


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

Re: st: "Select If" Statement xtmixed


From   Phil Clayton <[email protected]>
To   [email protected]
Subject   Re: st: "Select If" Statement xtmixed
Date   Fri, 18 Mar 2011 10:50:27 +1100

Try putting the -if- statement before the ||

Phil

On 18/03/2011, at 10:43 AM, Saul G. Alamilla wrote:

> Statalist Members:
> 
> I have a question which may be rather straightforward.
> 
> I would like to use a "select if" statement in xtmixed (random intercept model with cross-sectional data) so that I only utilize clusters (L2 units or groups) containing at least 3 observations (or L1 units). I have about 140 neighborhood groups with anywhere from 1-26 individuals per neighborhood group.
> 
> Thus, I would like to have Stata only use data for those neighborhoods with more than 2 individuals.
> 
> The "if" option does not appear to be allowed in Stata.
> 
> Any help or suggestions would be greatly appreciated.
> 
> Sincerely,
> Saul 
> 
> 
> 
> *
> *   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index