Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: inflation adjustment

From   "Klepsch, Catharina" <>
To   "" <>
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.

Von: [] im Auftrag von lisa wallner []
Gesendet: Dienstag, 3. Dezember 2013 08:15w to
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!
*   For searches and help try:
*   For searches and help try:

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