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]

Re: st: Repeated observations for time variable tsset


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Repeated observations for time variable tsset
Date   Sat, 15 Oct 2011 10:02:33 +0100

But it sounds like panel data. The help for -tsset- explains that you
must set a panel identifier.

On Sat, Oct 15, 2011 at 8:52 AM, Nick Cox <njcoxstata@gmail.com> wrote:
> If this is your data, you cannot -tsset- it.
>
> Nick
>
> On Sat, Oct 15, 2011 at 6:17 AM, Abhishek Bharad <abhara2@tigers.lsu.edu> wrote:
>
>> In my data set i have a several number of observations for each week.
>> Week is a variable in the data set.  Each observation has a different id.
>> I was not able to run "tsset  week "command in stata, I got the error
>> "repeated time values in sample".
>>
>> The data set looks like this,
>>
>> week response
>>  1   3
>>  1   4
>>  1   2
>>  1   5
>>  2   1
>>  2   2
>>  2   6
>>  2   4
>>
>> how can I get around this and use week as time variable?
>

*
*   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