Skip to contents

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.

Value

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

Details

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

Examples

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