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]

Fwd: st: Drop subjects from a panel


From   Abhimanyu Arora <abhimanyu.arora1987@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Fwd: st: Drop subjects from a panel
Date   Wed, 8 Feb 2012 22:03:21 +0100

Email bounced back...
But pls

---------- Forwarded message ----------
From: Abhimanyu Arora <abhimanyu.arora1987@gmail.com>
Date: Wed, Feb 8, 2012 at 9:43 PM
Subject: Re: st: Drop subjects from a panel
To: statalist@hsphsun2.harvard.edu



Hi
I would
*-generate- an indicator variable, newvar satisfying the condition
*sum it up, -by panelvar-, thereby generating sum_newvar
*drop if sum_newvar>0



On Wed, Feb 8, 2012 at 9:36 PM, Ayman Farahat <ayman.farahat@yahoo.com> wrote:
>
>
> Hello ;
>
>  I have a panel data. I would like to remove all subjects that had a certain co-variate at a specific time.
>
> For example, drop all subjects that had a covariate==0 for time==2.
> Any help greatly appreciated.
>
> Thanks
> Ayman
>
>
> *
> *   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