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]
AW: st: AW: converting plain numbers in dates
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
AW: st: AW: converting plain numbers in dates
Date
Fri, 20 Aug 2010 16:54:30 +0200
<>
I have no clear idea of what you want to do, to be honest:
*************
clear*
set obs 15
gen byte myvar=_n
gen newdate=myvar+182
form newdate %tq
l
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von David Kehrl
Gesendet: Freitag, 20. August 2010 16:44
An: [email protected]
Betreff: Re: st: AW: converting plain numbers in dates
Basically I know how to set it to quarters but i dont know how to
define a starting point(tsset cert date, quarterly)
2010/8/20 David Kehrl <[email protected]>:
> 8= 3q07
>
> 2010/8/20 Martin Weiss <[email protected]>:
>>
>> <>
>>
>> Conversions are discussed in
>>
>> *************
>> help dates_and_times, mark(converting)
>> *************
>>
>> What, for instance, is the number "8" supposed to look like for you?
>>
>>
>> HTH
>> Martin
>>
>> -----Ursprüngliche Nachricht-----
>> Von: [email protected]
>> [mailto:[email protected]] Im Auftrag von David Kehrl
>> Gesendet: Freitag, 20. August 2010 16:21
>> An: [email protected]
>> Betreff: st: converting plain numbers in dates
>>
>> Dear statalists,
>>
>> i have a very basic question. How can I convert a time variable that
>> is just plain numbers from 1 to 15 into the format qyy( meaning
>> quarter and then year)
>> Thanks so much
>> David
>> *
>> * 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/
>>
>>
>> *
>> * 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/
>>
>
*
* 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/
*
* 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/