distance {disaggR}R Documentation

Distance computation for disaggregations

Description

This function distance computes the Minkowski distance of exponent p, related to a tscomparison object, produced with in_sample, in_disaggr or in_revisions

Usage

distance(x, p = 2)

Arguments

x

an object of class tscomparison

p

an integer greater than 1L, or Inf.

Details

The meaning depends on the tscomparison function :

Value

a numeric of length 1, the distance.

See Also

in_sample in_disaggr in_revisions

Examples

benchmark <- twoStepsBenchmark(turnover,construction,include.rho = TRUE)
distance(in_sample(benchmark,type="changes"))
distance(in_disaggr(benchmark,type="contributions"),p=1L)
distance(in_disaggr(benchmark,type="changes"),p=Inf)

[Package disaggR version 1.0.5.2 Index]