Description Usage Arguments Details Author(s) See Also Examples
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
| 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"))
 | 
| data | a dataframe with STAN variables in columns. | 
| value.var | STAN variable containing the nominal or quantity series, e.g.  | 
| index.var | STAN variable containing the chained index series, e.g.  | 
| refyear | integer to specify the reference year of the chained index series, e.g.  | 
| volume.var | STAN variable containing the volume series, e.g.  | 
| pyp.var | STAN variable containing the previous-year price series, e.g.  | 
| price.var | STAN variable containing the price series, e.g.  | 
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)
OECD STAN
| 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")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.