hr: Estimate harmonic components

View source: R/itsmr.R

hrR Documentation

Estimate harmonic components

Description

Estimate harmonic components

Usage

hr(x, d)

Arguments

x

Time series data

d

Vector of harmonic periods

Value

Returns a vector the same length as x. Subtract from x to obtain residuals.

Examples

y = hr(deaths,c(12,6))
plotc(deaths,y)

itsmr documentation built on Aug. 6, 2022, 9:08 a.m.