get_q_index {IndexNumberTools}R Documentation

Get quantity index

Description

Returns the series of quantity indices in previous year prices from a current prices and

Usage

get_q_index(current, constant)

Arguments

current

(ts) Values at current prices.

constant

(ts) Values at previous year prices.

Value

Series of quantity indices for previous year prices.

Examples

gdp_pyp <- get_pyp(gdp_volume)
gdp_constant <- gdp_current / gdp_pyp * 100
get_q_index(gdp_current, gdp_constant)

[Package IndexNumberTools version 1.1 Index]