Description Usage Arguments Value Author(s) Examples
The harmonic regression is usually fitted as z(t) = mu + A*cos(2*pi*f*t) + B*sin(2*pi*f*t) but is more meaningfully expressed as z(t) = mu + R*cos(2*pi*f*t + 2*pi*phi), where R and -0.5<phi=0.5 are the amplitude and phase. This function converts the parameters to the amplitude-phase parameterization.
1 | ABToRPhase(AB)
|
AB |
Vector containing the A and B coefficients respectively. |
vector c(R, phi)
Yuanhao Lai and A. I. McLeod
1 2 3 | #Bloomfield ozone example, p.17
harper:::ABToRPhase(c(-4.205,1.075))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.