Description Usage Arguments Details Value References See Also Examples
Estimates A, B and f in the harmonic regression, y(t)=mu+A*cos(2*pi*f*t)+B*sin(2*pi*f*t)+e(t) using LS.
1 |
y |
series |
t |
time points |
nf |
nf, number of frequencies to enumerate |
Program is interfaced to C for efficient computation.
Object of class "HReg" produced. This is a list with components: 'coefficients', 'residuals', 'Rsq', 'fstatistic', 'sigma', 'freq', 'LRStat' corresponding to the 3 regression coefficients, residuals, R-squared, F-statistic, residual sd, optimal frequency and LR-test statistic for null hypothesis white noise.
Islam, M.S. (2008). Peridocity, Change Detection and Prediction in Microarrays. Ph.D. Thesis, The University of Western Ontario.
1 2 | z<-SimulateHReg(10, f=2.5/10, 1, 2)
FitHReg(z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.