| harmonicfit | R Documentation |
This function fit an k-harmonic function to time series data.
harmonicfit(x, ...)
x |
An object of class 'utilities'. |
... |
Additional arguments for pairing time series:
|
The function fits a harmonic regression model with 'nham' components to the input time series, optionally removing a linear trend and allowing for weighted estimation when standard errors are available.
An object of class 'utilities' with the slots:
fitted_values |
Fitted values from the harmonic model. |
residuals |
Residuals from the harmonic model. |
coef |
Estimated coefficients of the harmonic model. |
summary |
A summary object containing detailed model information. |
Elorrieta_2021iAR
data(clcep)
f1=0.060033386
o1=iAR::utilities()
o1<-phase(o1,data=clcep,f1=f1)
#results$R2
#results$MSE
#results=harmonicfit(file=clcep[,1:2],f1=f1,nham=3)
#results$R2
#results$MSE
#results=harmonicfit(file=clcep[,1:2],f1=f1,weights=clcep[,3])
#results$R2
#results$MSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.