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: How do I rebaseline financial data to a new year


From   "Gibb, Art" <agibb@email.unc.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: How do I rebaseline financial data to a new year
Date   Thu, 1 Sep 2011 15:45:55 +0000

Austin,
Thanks for the quick reply. So then I would have to divide all values for all years other than 2000 by this constant, correct?

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Austin Nichols
Sent: Thursday, September 01, 2011 11:30 AM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: How do I rebaseline financial data to a new year

Art Gibb <agibb@email.unc.edu>:
There is -cpigen- on SSC which I note is sadly out of date--I will
update it shortly.
You can also do:

ssc inst freduse
mata mata mlib index
freduse CPIAUCNS, clear
su CPIAUCNS if year(daten)==2000
g cpi2000=CPIAUCNS/r(mean)
su cpi2000 if year(daten)==2009

to find that the CPI-U was 1.245859 times higher in 2009 than in 2000.

On Thu, Sep 1, 2011 at 11:15 AM, Art Gibb <agibb@email.unc.edu> wrote:
> I'm using two sets of financial data, one in constant 2009$US, the other in
> constant 2000$US. The data is TSCS, covering a large number of countries
> from 1989-2009.  How do I convert the constant 2009$ data to constant 2000$?
> I imagine this is a fairly common requirement - has anyone written code that
> will do this that I can use as an example?
>
> Many thanks!

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