ts-models-QAR1 {quantspec} | R Documentation |
Simulation of an QAR(1) time series.
Description
Returns a simulated time series that fulfills the following equation:
where and
are parameters and
is
independent white noise with uniform
marginal distributions.
Usage
QAR1(
n,
th1 = function(u) {
1.9 * ((u - 0.5))
},
overhead = 1000,
th0 = qnorm
)
Arguments
n |
length of the time series to be returned |
th1 |
parameter function with one argument |
overhead |
an integer specifying the “warmup” period to reach an approximate stationary start for the times series |
th0 |
parameter function with one argument |
Value
Returns an QAR(1) time series with specified parameters.
Examples
plot(QAR1(100), type="l")
[Package quantspec version 1.2-4 Index]