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]

Re: st: How to drop observations in panel


From   Islam Abdeljawad <islamabdeljawad@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: How to drop observations in panel
Date   Sat, 6 Aug 2011 04:12:35 -0700 (PDT)

It works. will check if i should use it in my regression. Thanks Nick

 



----- Original Message -----
> From: Nick Cox <njcoxstata@gmail.com>
> To: statalist@hsphsun2.harvard.edu
> Cc: 
> Sent: Saturday, August 6, 2011 4:16 PM
> Subject: Re: st: How to drop observations in panel
> 
> bysort panelid : drop if _N < 3
> 
> Whether this is a good idea is a different matter.
> 
> Nick
> 
> On Sat, Aug 6, 2011 at 6:36 AM, Islam Abdeljawad
> <islamabdeljawad@yahoo.com> wrote:
> 
>>  I am new to stata. I am working on an unbalanced data set where firm is the 
> cross section identifier
>>   and the time identifier is year.
>>  Estimation of the model will be based
>>   on GMM-sys. some of my firms have only one or two years of observations.
>>  Should I drop these firms and how I can do it in stata. in other words, any 
> firm
>>   that have less than three years of data
>>  available (less than three observations) will not be included in the 
> estimation.
> 
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index