| qpm_disaggregate | R Documentation |
Turns annual series into quarterly ones consistent with the annual totals. Many of the economies these models are built for publish national accounts annually, so a quarterly projection model has to start by constructing quarterly GDP — usually from an indicator such as industrial production, imports or credit.
qpm_disaggregate(
annual,
indicator = NULL,
frequency = 4,
method = c("denton", "chow-lin"),
conversion = c("sum", "average"),
rho = NULL
)
## S3 method for class 'qpm_disaggregation'
plot(x, ...)
annual |
Numeric vector of low-frequency values. |
indicator |
Optional numeric vector of high-frequency indicator
values, length |
frequency |
Periods per low-frequency observation (4 for annual-to-quarterly). |
method |
|
conversion |
|
rho |
AR(1) coefficient for |
x |
A |
... |
Unused. |
Two standard methods:
"denton" — Denton-Cholette proportional first differences.
Minimises the squared change in the ratio of the quarterly series to
the indicator (or, without an indicator, in the series itself),
subject to matching the annual figures. Purely a smoothing method:
no regression, no parameters.
"chow-lin" — generalised least squares on the indicator with
AR(1) quarterly residuals, distributing the annual residual across
quarters. Uses the indicator's regression relationship, so it is the
better choice when the indicator genuinely tracks the target.
Both enforce the aggregation constraint exactly: "sum" for flows
(annual GDP is the sum of quarters), "average" for stocks and index
levels.
An object of class qpm_disaggregation: the high-frequency
series, the method used and the fitted parameters.
Denton, F. T. (1971); Chow, G. C. and Lin, A. (1971).
# annual GDP with a quarterly indicator
set.seed(1)
q_true <- cumsum(rnorm(40, 0.5)) + 100
annual <- colSums(matrix(q_true, nrow = 4))
ind <- q_true + rnorm(40, 0, 1)
d <- qpm_disaggregate(annual, ind, method = "chow-lin")
d
plot(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.