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]
Re: st: How do I rebaseline financial data to a new year
From
Austin Nichols <[email protected]>
To
[email protected]
Subject
Re: st: How do I rebaseline financial data to a new year
Date
Thu, 1 Sep 2011 11:30:15 -0400
Art Gibb <[email protected]>:
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 <[email protected]> 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/