Bookmark and Share

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]

st: AW: inflation adjustment


From   "Klepsch, Catharina" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: AW: inflation adjustment
Date   Tue, 3 Dec 2013 10:09:19 +0100

Hi Lisa,

if you use 2005 or 2010 as a base year, has only an effect on how to interprete your results. 
You can use a loop to deflate several variables.
For example:

local deflator cpi_variable
local variables_to_deflate x1 x2 x3 x4 x5
foreach var of varlist `variables_to_deflate '{
qui gen `var'_deflated = `var'/`deflator'
label var `var'_deflated "``var' deflated by cpi"
}

I hope this helps.

Cathatina
________________________________________
Von: [email protected] [[email protected]] im Auftrag von lisa wallner [[email protected]]
Gesendet: Dienstag, 3. Dezember 2013 08:15w to
An: [email protected]
Betreff: st: inflation adjustment

Dear Statalist,

I have panel data for the years 2005-2010 and I want to do inflation adjustment. Should I use 2005 as base year or is it better to use 2010 for this? Do I have to do that for every single variable by hand, or is there a possibility to do it via a code?

Thx in advance!
Lisa
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index