This function computes weights for linear growth or non-linear level constraints.
compute_weights(tsl_r, tsl_n, idx, pos, neg, weight_type = "growth")
A time series list with weights.
time series list with real level series
time series list with nominal level series
index for aggregate
sectors to be added
sectors to be substracted
type of weights, either growth
or level
,
default is growth