Usage
rpar(n, rho, sigma_M, sigma_R, M0 = 0, R0 = 0,
include.state = FALSE, robust = FALSE, nu = par.nu.default())
Arguments
n
Length of sequence to generate
rho
The coefficient of mean reversion
sigma_M
The standard deviation of the innovations of the mean-reverting component
sigma_R
The standard deviation of the innovations of the random walk component
M0
Initial state of mean-reverting component
R0
Initial state of random walk component
include.state
If TRUE
, a data.frame
is returned containing the states
of the mean-reverting and random walk components. Otherwise, a numeric vector is
returned containing the state of the system. Default: FALSE
.
robust
If TRUE, innovations are t-distributed. Otherwise, they are
normally distributed. Default: FALSE
.
nu
If robust
is TRUE
, then this is the degrees of freedom parameter
to be used in the t-distributed innovations.