Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: Reindex/rebase time series?


From   "Michael S. Hanson" <mshanson@mac.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Reindex/rebase time series?
Date   Fri, 15 Apr 2005 00:35:24 -0400

On Apr 14, 2005, at 5:29 PM, Nick Cox wrote:

qui foreach v of var <varlist> {
	su `v' if tin(2000q1,2000q4), meanonly
	gen `v'2000 = `v' / r(mean)
}
Thanks, Nick, for your prompt and helpful reply -- the answer seems obvious now that I see it.

-- Mike

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index