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: Repeated observations for time variable tsset
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Repeated observations for time variable tsset
Date
Sat, 15 Oct 2011 08:52:36 +0100
If this is your data, you cannot -tsset- it.
Nick
On Sat, Oct 15, 2011 at 6:17 AM, Abhishek Bharad <[email protected]> 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/