Used to inflate variables in the sample file when there is no clear existing index. Note this is an unexported function: it is not available to the end-user.
generic_inflator(vars, h, fy.year.of.sample.file = "2012-13",
nonzero = FALSE, estimator = "mean", pred_interval = 80)
A character vector of those variables within .sample_file
for which forecasts are desired.
An integer, how many years ahead should the inflator be targeted.
A string representing the financial year of .sample_file
.
Should the forecast be taken on all values, or just nonzero values?
What forecast element should be used: the point estimate ("mean"
), or the upper
or lower
endpoint of a prediction interval?
If estimator
is upper
or lower
, what prediction interval are these the end points of?
A data table of two columns: variable
containing vars
and inflator
equal to the inflator to be applied to that variable to inflate it ahead h
years.