Learn R Programming

BETS (version 0.4.9)

deflate: Deflate a time series

Description

Deflate a time series using a deflator series. The deflator can be an index, a percentage or a point percentage series.

Usage

deflate(ts, deflator, type = "index")

Arguments

ts

A ts object. The time series to be deflated.

deflator

A ts object. The deflator series.

type

A character. Can be either 'index', 'point.perc' (for point percentage) or 'perc' (for percentage).

Value

The deflated series.