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: 01/04= month/year and tsset
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: 01/04= month/year and tsset
Date
Sat, 23 Jun 2012 17:00:29 +0100
Well,
format edate1 %td
is a mistake, as these are monthly data. Should be %tm.
But you should look at the observations for which you get missings, say
edit times if missing(edate1)
to see what is giving you missings.
Nick
On Sat, Jun 23, 2012 at 4:33 PM, sabbas gidarokostas
<[email protected]> wrote:
> I have the following "times" column in my data
>
> times
> 01/04
> 02/04
> 03/04
>
> and so forth.
>
>
> I use
>
> gen edate1 = monthly(times,"M20Y")
>
> format edate1 %td
>
> and I get the message
>
> (3744 missing values generated) out of 9126 obs that I have.
>
> I can not see where my mistake is.
*
* 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/