[R] Fitting a Harmonic Function to Time Series Data

David Scott d.scott at auckland.ac.nz
Fri Oct 14 12:04:13 CEST 2011


On 14/10/2011 1:00 a.m., ashz wrote:
> Dear All,
>
> I have some time series data where X=month and Y=nutrient concentration (I
> can have several concentration data for one month). Is there a way to fit
> for it an Harmonic Function. Is there a package, script,etc which I can use?
>
> Thx
>
>

Possibly there is this functionality in Rob Hyndman's forecast package. 
See this post by him:
http://robjhyndman.com/researchtips/longseasonality/
which has some code which should also be of use.

David Scott


_________________________________________________________________
David Scott	Department of Statistics
		The University of Auckland, PB 92019
		Auckland 1142,    NEW ZEALAND
Phone: +64 9 923 5055, or +64 9 373 7599 ext 85055
Email:	d.scott at auckland.ac.nz,  Fax: +64 9 373 7018



More information about the R-help mailing list