Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Renaming year-quarter indicators with a local


From   "Davide Cantoni" <[email protected]>
To   [email protected]
Subject   st: Renaming year-quarter indicators with a local
Date   Fri, 18 Jan 2008 20:02:47 +0100

I'm trying to rename indicator variables for a time period that have
been created with xi. What I cannot understand is why

. rename _Idate_130 _Iquarter_92_3

works perfectly, whereas the following code does not

. local qtr: display %tqY!_q 130

. rename _Idate_130 _Iquarter_`qtr'
92_3 not allowed

Thanks for your suggestions,

Davide Cantoni
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index