Add quarterly chained volumes series with annual overlap
sum_vol=add_an_overlap(vols,vals,baseyear,weights)
* vols = a list of k chained volume series
* vals = a list of k value series
* baseyear = a constant, the base year
* weights = a constant vector of weights given to each k series
* sum_vol = the resulting series
// load the quarterly data on French consumption published in Februray 2022 by Insee global GROCERDIR ; load(GROCERDIR+'\data\fra_cons.dat') // build the consumption in industrial products from the one in manufacturing and energy ind_cons=add_an_overlap(list(P3M_DE_7CH,P3M_DIM_7CH),list(P3M_DE_3,P3M_DIM_3),2014) // build the ratio of the original to rebuilt series of housholds'' consumption of industrial products // (note: there can be slight discrepancies because Insee uses non seasonlly adjusted annual weights // but only published seasonnaly adjusted series) write(%io(2),'ratio of the original to rebuilt series of housholds'' consumption of industrial products:') disp(ind_cons/P31M_DI_7CH) | ![]() | ![]() |