<< add_an_overlap Tools for NSI data ann_overlap_2_latsyvol >>

Grocer >> Tools for NSI data > ann_overlap_2_baseprice

ann_overlap_2_baseprice

Calculates the price of previous year for chained price quarterly series

CALLING SEQUENCE

xpxbase=ann_overlap_2_baseprice(xvolch,xval)

PARAMETERS

Input

* xvolch = a quarterly series in volume at the chained prices of the previous year

* xval = a series in values

Output

* xpxbase = a quarterly ts, the corresponding price of previous year (filled with ones when the series are %nan or the volume series is 0)

DESCRIPTION

Calculates the price of previous year from series expressed in volume at the chained prices of the previous year.

EXAMPLE

// load the quarterly data on French consumption published in Februray 2022 by Insee
global GROCERDIR ;
load(GROCERDIR+'\data\fra_cons.dat')
// calculate the previuops year price of manufacturing consumption
P3M_DIM_0=ann_overlap_2_baseprice(P3M_DIM_7CH,P3M_DIM_3)

AUTHOR

Éric Dubois 2022

Report an issue
<< add_an_overlap Tools for NSI data ann_overlap_2_latsyvol >>