Learn R Programming

itsmr (version 1.1)

hr: Estimate harmonic components

Description

Estimate harmonic components

Usage

hr(x, d)

Arguments

x
Data vector
d
Vector of harmonic periods

Value

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

Examples

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

Run the code above in your browser using DataLab