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: AW: converting plain numbers in dates


From   David Kehrl <davidkehrl@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: AW: converting plain numbers in dates
Date   Fri, 20 Aug 2010 17:02:17 +0200

Still you solved my problem thanks a lot.

2010/8/20 Martin Weiss <martin.weiss1@gmx.de>:
>
> <>
>
> 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: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von David Kehrl
> Gesendet: Freitag, 20. August 2010 16:44
> An: statalist@hsphsun2.harvard.edu
> 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 <davidkehrl@googlemail.com>:
>> 8= 3q07
>>
>> 2010/8/20 Martin Weiss <martin.weiss1@gmx.de>:
>>>
>>> <>
>>>
>>> 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: owner-statalist@hsphsun2.harvard.edu
>>> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von David Kehrl
>>> Gesendet: Freitag, 20. August 2010 16:21
>>> An: statalist@hsphsun2.harvard.edu
>>> 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/
>

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