Description Usage Arguments Value Author(s) See Also Examples
Generation of a cyclic model of a Poisson distribution as background data for a simulated timevector.
The mean of the Poisson distribution is modelled as:
mu = exp(A * sin( frequency * omega * (t + phi)) + alpha + beta * t + K * state)
1 2 |
A |
amplitude (range of sinus), default = 1. |
alpha |
parameter to move along the y-axis (negative values not allowed) with alpha > = A, default = 1. |
beta |
regression coefficient, default = 0. |
phi |
factor to create seasonal moves (moves the curve along the x-axis), default = 0. |
length |
number of weeks to model. |
frequency |
factor to determine the oscillation-frequency, default = 1. |
state |
if a state chain is entered the outbreaks will be additional weighted by K. |
K |
additional weigth for an outbreak which influences the distribution parameter mu, default = 0. |
seasonNoise |
Object of class |
M. Höhle, A. Riebler, C. Lang
1 2 3 4 5 6 | season <- sim.seasonalNoise(length = 300)
plot(season$seasonalBackground,type = "l")
# use a negative timetrend beta
season <- sim.seasonalNoise(beta = -0.003, length = 300)
plot(season$seasonalBackground,type = "l")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.