Deflat {RcmdrPlugin.TeachStat} | R 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 |
See Also
Sindex
, ComplexIN
, priceIndexNum
.
Examples
data(Depositos, package = "RcmdrPlugin.TeachStat")
Deflat(Depositos, "year", "quantity", "G_IPC_2016", "2018")
[Package RcmdrPlugin.TeachStat version 1.1.3 Index]