Description Usage Arguments Details Value Author(s) References See Also Examples
Generate a basis for a sinusoidal function at some fixed period
1 |
period |
a numeric value indicating the seasonal pattern period |
n |
an integer indicating the number of observations |
largest.period |
a numeric value indicating the largest seasonal pattern period. Default is an year or 365 days |
This function returns a two-column matrix containing both sine and cosine component evaluated at the given period. The columns are named accordingly.
The function is designed to be used directly from within a formula. Therefore, there is no need to create the sine and cosine vectors prior to the fitting process.
When using with the ares library, n
may be omitted and it will be taken from the length of ares.selection
.
A two-column matrix containing sine and cosine
Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br
Schwartz, J., Spix, C., Touloumi, G. et al. (1996) Methodological issues in studies of air pollution and daily counts of deaths or hospital admissions. J Epidemiol. Community Health 50 (suppl 1), S12–S18.
Box, G., Jenkins, G., Reinsel, G. (1994) Time Series Analysis : Forecasting and Control. 3 ed., Prentice Hall.
Diggle, P. J. (1990) Time Series : A Biostatistical Introduction. Oxford University Press.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.