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 + phi), where R and phi are the amplitude and phase. This function converts the parameters in the R-phase form to the AB form.
1 | RPhaseToAB(RPhi)
|
RPhi |
Vector containing the R and phi coefficients respectively. |
vector c(A, B)
Yuanhao Lai and A. I. McLeod
1 2 3 | #check by back-transform
harper:::RPhaseToAB(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.