powered by
The function creates a Fourier form periodic component for given period and harmonics.
seasMod(p, h, m0, C0)
A list of the following:
FF - Observational vector.
GG - Evolution matrix.
m0 - Prior mean of the state vector.
C0 - Prior covariance of the state vector.
The period.
Vector of harmonics to be included.
Prior mean of the state vector.
Prior covariance of the state vector.
# create a seasonal component with first, second and fourth harmonics of a period of 365 seas.comp = seasMod(365,c(1,2,4),C0=10*diag(6))
Run the code above in your browser using DataLab