powered by
Estimate harmonic components
hr(x, d)
Returns a vector the same length as x. Subtract from x to obtain residuals.
x
Time series data
Vector of harmonic periods
y = hr(deaths,c(12,6)) plotc(deaths,y)
Run the code above in your browser using DataLab