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 on April 23, and its replacement, statalist.org is already up and running.


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

st: How to drop observations


From   natasha agarwal <agarwana2@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: How to drop observations
Date   Mon, 14 Nov 2011 17:54:30 +0000

Dear Statalist,

I want to estimate a model only on those firms where the exporting
status switches from non-export to export.So for instance.

Firm Year Export Status
A      2001    0
A      2002    0
A      2003    0
A      2004    1
A      2005    1
B      2001    0
B      2002    0
B      2003    0

In this I want to drop firm B as it does not change its export status.
Moreover, for firm A, I want to keep only observation uptil 2004.

If anybody could help me it would be great.

Thanks,
Natasha
*
*   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