in_revisions {disaggR}R Documentation

Comparing two disaggregations together

Description

The function in_revisionstakes two inputs, twoStepsBenchmark or a threeRuleSmooth, and produces a comparison between those.

Usage

in_revisions(object, object_old, type = "changes")

Arguments

object

an object of class "twoStepsBenchmark" or "threeRuleSmooth".

object_old

an object of class "twoStepsBenchmark" or "threeRuleSmooth".

type

"levels","levels-rebased", "changes" or "contributions". This defines the type of output.

Details

The functions plot and autoplot can be used on this object to produce graphics.

Value

a named matrix time-serie of two columns, one for the response and the other for the predicted value. A tscomparison class is added to the object.

See Also

in_sample in_disaggr in_scatter plot.tscomparison

Examples

benchmark <- twoStepsBenchmark(turnover,construction,include.rho = TRUE)
benchmark2 <- twoStepsBenchmark(turnover,construction,include.differenciation = TRUE)
plot(in_revisions(benchmark,benchmark2))

[Package disaggR version 1.0.1 Index]