Learn R Programming

RcmdrPlugin.TeachStat (version 1.1.3)

Deflat: Deflation of an economic series

Description

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

Usage

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

Value

Deflat returns a data frame with one column:

const_base

The variable with constant values at base 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.

See Also

Sindex, ComplexIN, priceIndexNum.

Examples

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

Run the code above in your browser using DataLab