Learn R Programming

itsmr (version 1.9)

hr: Estimate harmonic components

Description

Estimate harmonic components

Usage

hr(x, d)

Value

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

Arguments

x

Time series data

d

Vector of harmonic periods

Examples

Run this code
y = hr(deaths,c(12,6))
plotc(deaths,y)

Run the code above in your browser using DataLab