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: Identify Panel Structure of Dataset
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Identify Panel Structure of Dataset
Date
Mon, 3 Oct 2011 20:21:14 +0100
Look at -xtdescribe-.
Nick
On Mon, Oct 3, 2011 at 7:44 PM, <[email protected]> wrote:
> I have compiled a dataset with firm-product-year information, e.g.:
>
>
> Firm Product t Salesvalue
> A 1 2000 5000
> A 1 2001 5500
>
> A 2 2000 3000
> A 2 2001 3500
> A 2 2002 4000
>
> B 3 2001 500
> B 3 2002 550
> B 3 2003 710
>
> B 4 2001 2000
> B 4 2002 4000
> ...
> Basically, firms have different products and report info on their products
> for different years. Firm A has info for the years 2000-2001 (Product 1)
> and for 2000-2002 (Product 2) while B reports on Product 3 in 2001-2003
> and in 2001-2001 on Product 4.
> I want to find out which time horizon I should use for my panel to get the
> longest time horizon possible. In this example, I would use t=2001,2002
> since both, A and B report in both years.
>
> How can I do this in 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/