a 2-component vector specifying the coefficients (if only one cosine term is desired define coef[2]=0)
freq
a 2-component vector specifying the frequency components (0 to .5)
psi
a 2-component vector specifying the phase shift (0 to 2pi)
phi
a vector of coefficients of the coefficients of the AR noise
vara
vara is the variance of the noise. NOTE: a(t) is a vector of N(0,WNV) noise generated within the function (default=1)
plot
if TRUE then plot the data generated (default=TRUE)
sn
determines the seed used in the simulation (default=0 indicating new realization each time). sn=positve integer, then the same realization is generated each time
Author
Wayne Woodward
References
Applied Time Series Analysis with R, second edition by Woodward, Gray, and Elliott