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 June 8, 2025, 11:21 a.m.