Deflat: Deflation of an economic series

View source: R/indexnum_functions.R

DeflatR Documentation

Deflation of an economic series

Description

Deflat deflates a current value variable into a constant value variable.

Usage

Deflat(x, pervar, cvar, defl, base)

Arguments

x

Data frame containing, at least, the characteristics (time, location, ...), the current value and the deflator variables.

pervar

Character string for the name of the factor variable with the characteristics.

cvar

Character string for the name of the numeric variable with the current values.

defl

Character string for the name of the numeric variable with the index number used as deflator.

base

Character string for the name of the base characteristic.

Value

Deflat returns a data frame with one column:

const_base

The variable with constant values at base base

See Also

Sindex, ComplexIN, priceIndexNum.

Examples

data(Depositos, package = "RcmdrPlugin.TeachStat")
Deflat(Depositos, "year", "quantity", "G_IPC_2016", "2018")

RcmdrPlugin.TeachStat documentation built on Nov. 14, 2023, 5:08 p.m.