indices: calcIndexVolumeFisher

Description Usage Arguments Details Author(s) See Also Examples

Description

calcIndexVolumeFisher: calculate volume series using nominal series and Fisher chained index series

calcIndexPypFisher: calculate previous year price series using nominal series and Fisher chained index series

calcVolumePyp: calculate previous year price series using nominal series and volume series

calcPypVolume: calculate volume series using nominal series and previous year price series

calcVolumePrice: calculate price series using nominal series and volume series

calcPricePyp: calculate previous year price series using nominal series and price series

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
calcIndexVolumeFisher(data = stop("\"data\" must be specified"),
  value.var = stop("\"value.var\" must be specified"),
  index.var = stop("\"index.var\" must be specified"),
  refyear = stop("\"refyear\" must be specified"))

calcIndexPypFisher(data = stop("\"data\" must be specified"),
  value.var = stop("\"value.var\" must be specified"),
  index.var = stop("\"index.var\" must be specified"),
  refyear = stop("\"refyear\" must be specified"))

calcVolumePyp(data = stop("\"data\" must be specified"),
  value.var = stop("\"value.var\" must be specified"),
  volume.var = stop("\"volume.var\" must be specified"))

calcPypVolume(data = stop("\"data\" must be specified"),
  value.var = stop("\"value.var\" must be specified"),
  pyp.var = stop("\"pyp.var\" must be specified"),
  refyear = stop("\"refyear\" must be specified"))

calcVolumePrice(data = stop("\"data\" must be specified"),
  value.var = stop("\"value.var\" must be specified"),
  volume.var = stop("\"volume.var\" must be specified"))

calcPricePyp(data = stop("\"data\" must be specified"),
  value.var = stop("\"value.var\" must be specified"),
  price.var = stop("\"price.var\" must be specified"))

Arguments

data

a dataframe with STAN variables in columns.

value.var

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

index.var

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

volume.var

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

pyp.var

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

price.var

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

Details

calcIndexVolumeFisher(data, value.var, index.var, refyear)

calcIndexPypFisher(data, value.var, index.var, refyear)

calcVolumePyp(data, value.var, index.var, refyear)

calcPypVolume(data, value.var, index.var, refyear)

calcVolumePrice(data, value.var, index.var, refyear)

calcPricePyp(data, value.var, index.var, refyear)

Author(s)

OECD STAN

See Also

estimate

Examples

1
2
3
4
5
6
data.stan.d <- read.csv(file = system.file(file.path("extdata", "volumeFisherPivot.csv"), package = "stan"))
data.stan.d$VALK2 <- calcIndexVolumeFisher(data = data.stan.d, value.var="VALU", index.var="VKOT", refyear=2005)
data.stan.d$VALK2 <- calcPypVolume(data = data.stan.d, value.var="VALU", pyp.var="VKPY2", refyear=2005)
data.stan.d$VALP2 <- calcVolumePrice(data = data.stan.d, value.var="VALU", volume.var="VALK")
data.stan.d$VKPY2 <- calcPricePyp(data = data.stan.d, value.var="VALU", price.var="VALP")
data.stan.d$VKPY2 <- calcVolumePyp(data = data.stan.d, value.var="VALU", volume.var="VALK2")

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