Description Usage Arguments Details Author(s) See Also Examples
cpIdxClGeom
: calculate volume series using nominal series and Laspeyres or Fisher chained index series
cpVolPyp
: calculate previous year price series using nominal series and Laspeyres or Fisher chained volume series
cpIdxPyp
: calculate previous year price series using nominal series and Laspeyres or Fisher chained index series
1 2 3 4 5 6 7 8 | cpIdxCl(data = stop("'data' must be specified"), var.cp = "VALU",
var.idx = "VKOT", id.vars = "ind", refyear = 2010)
cpVolPyp(data = stop("'data' must be specified"), var.cp = "VALU",
var.cl = "VALK", id.vars = "ind")
cpIdxPyp(data = stop("'data' must be specified"), var.cp = "VALU",
var.idx = "VKOT", id.vars = "ind", refyear = 2010)
|
data |
a dataframe with STAN variables in columns. |
var.cp |
STAN variable containing the nominal or quantity series, e.g. |
var.idx |
STAN variable containing the chained index series, e.g. |
refyear |
integer to specify the reference year of the chained index series, e.g. |
price.var |
STAN variable containing the price series, e.g. |
pyp.var |
STAN variable containing the previous-year price series, e.g. |
volume.var |
STAN variable containing the volume series, e.g. |
cpIdxClGeom(data, value.var, var.idx, refyear)
cpVolPyp(data, var.cp, var.cl, id.vars)
cpIdxPyp(data, var.cp, var.idx, id.vars, refyear)
OECD STAN
1 2 3 4 5 6 7 8 9 10 11 | data.stan.d <- read.csv(file = system.file(file.path("extdata", "volumeFisherPivot.csv"), package = "stan"))
data.stan.d$VALK <- cpIdxCl(data=data.stan.d,
var.cp="VALU",
var.idx="VKOT",
id.vars="ind",
refyear=2005
)
var.trans <- data.frame(var.cp = c("VALU", "PROD", "INTI", "GFCF", "CAPN", "CAPG"),
var.idx = c("VKOT", "PKOT", "IKOT", "GKOT", "CKOT", "CGOT"),
var.cl = c("VALK", "PRDK", "INTK", "GFCK", "CPNK", "CPGK"),
var.pyp = c("VKPY", "PKPY", "IKPY", "GKPY", "CNPY", "CGPY"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.