geovolSim {geovol} | R Documentation |
Simulate from a GEOVOL model
Description
Simulate from a GEOVOL model.
Usage
geovolSim(n, m, innovations = NULL, x.sd = 0.5, as.zoo = TRUE, verbose = FALSE)
Arguments
n |
integer indicating the number of observations. |
m |
integer indicating the number of time series. |
innovations |
|
x.sd |
numeric scalar indicating the standard deviation of the normal random variable, v, used to simulate the squared GEOVOL factor, x, according to the formula x = exp(v). |
as.zoo |
logical. If |
verbose |
|
Value
A matrix with the simulated values.
Author(s)
Susana Campos-Martins
See Also
Examples
set.seed(123)
## Simulate from a GEOVOL model with s.d. 0.5 (default):
eSim <- geovolSim(n = 1000, m = 30)
## Simulate from a GEOVOL model with s.d. 1:
eSim <- geovolSim(n = 1000, m = 30, x.sd = 1)
[Package geovol version 1.0 Index]