Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Tsset date

From   Nick Cox <>
Subject   Re: st: Tsset date
Date   Mon, 21 Jan 2013 10:23:19 +0000

In general, it is not a good idea to expect an explanation of an error
message when you don't even tell us what the error message is.

Stata daily date variables must be _numeric_ to be acceptable to
-tsset-. No Stata numeric variable can have a value that is "1960Q1".
However, applying the format %tq to a numeric variable would result in
displays such as "1960q1".

If you literally typed "Tsset s date", that would be an error, as the
command is -tsset-.

I suggest that you show us the results of

describe s date
tsset s date

meaning that you copy exactly what Stata types in the Results window
when given these two commands.


On Mon, Jan 21, 2013 at 9:48 AM, Terence Fung <> wrote:

> Suppose a variable named 'date' has value = '1960Q1', the panel unit is named 's' whose value =1. I tried: format date %tq
> Tsset s date
> How come an error message pops up? I'm using stata 10.
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index