Bookmark and Share

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: How to solve "repeated time values" error message for panel dataset


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: How to solve "repeated time values" error message for panel dataset
Date   Thu, 5 Jan 2012 18:38:54 +0000

This is an FAQ

FAQ     . . . . . .  Dealing with reports of repeated time values within panel
        . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox and M. Mulcahy
        12/05   How do I deal with a report of repeated time values
                within panel?
                http://www.stata.com/support/faqs/data/repeatedtime.html
Nick 
n.j.cox@durham.ac.uk 

Nataliya Acc

Thank you very much for your reply.

I tried to do what you suggested but it still returns the same error message:repeated time values within panel
r(451);

Is there anything else I could do or change?

From: Maarten Buis <maartenlbuis@gmail.com>

On Thu, Jan 5, 2012 at 10:37 AM, Nataliya Acc <p99asn01@yahoo.com> wrote:
> When I am trying to declare my dataset time series I keep getting the following error
> message:
>
> repeated time values within panel
> r(451)
>
> I have data 20 partner countries, each of which contains data on 16 industries for 11 years.

The easiest sollution would be:

egen pan_id = group(country industry)
tsset pan_id year

Notice that now we are ignoring that the same industry in different
countries will be similar to one another and that different industries
in the same country will be similar to one another.

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index