stanVolume: stanVolume

Description Usage Arguments Details Author(s) See Also Examples

Description

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

Usage

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)

Arguments

data

a dataframe with STAN variables in columns.

var.cp

STAN variable containing the nominal or quantity series, e.g. VALU

var.idx

STAN variable containing the chained index series, e.g. VKOT

refyear

integer to specify the reference year of the chained index series, e.g. 2005

price.var

STAN variable containing the price series, e.g. VALP

pyp.var

STAN variable containing the previous-year price series, e.g. VKPY

volume.var

STAN variable containing the volume series, e.g. VALK

Details

cpIdxClGeom(data, value.var, var.idx, refyear)

cpVolPyp(data, var.cp, var.cl, id.vars)

cpIdxPyp(data, var.cp, var.idx, id.vars, refyear)

Author(s)

OECD STAN

See Also

estimate

Examples

 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"))

bowerth/stan documentation built on May 13, 2019, 12:38 a.m.