bysort firmid (year) : keep if _n == 1
Nick
[email protected]
ALICE DOBSON
> I use Stata 9.1. I have an unbalanced panel of firms [firmid]
> over several
> years [year] and want to consider only the first year for each id.
>
> Basically, I need to convert the panel data into a
> cross-sectional data to
> test for an interaction effect.
>
> Could anybody please help me?
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/