simulate.evmOpt | R Documentation |
Simulate random numbers from a fitted evm object
## S3 method for class 'evmOpt'
simulate(object, nsim = 1, seed = NULL, param = NULL, ...)
## S3 method for class 'evmSim'
simulate(object, nsim = 1, seed = NULL, ...)
## S3 method for class 'evmBoot'
simulate(object, nsim = 1, seed = NULL, ...)
object |
A fitted evm object having class 'evmOpt', 'evmSim' or 'evmBoot'. |
nsim |
The number of simulations to perform. Defaults to |
seed |
An integer to be passed to |
param |
Parameters to use in the random number generator. Defaults to
|
... |
Unused. |
For simulate.evmSim
and simulate.evmBoot
, the parameters from
the Markov chains or bootstrap replicates are randomly permuted prior to
each set of simulated responses being computed. In this way, reusing the
same set of values is avoided.
If nsim=1
, a vector or random numbers simulated from the
fitted model object. If nsim > 1
, a matrix with each column being a
set of simulated responses.
Paul Metcalfe, Harry Southworth
evm
mod <- evm(rain, qu=.95)
hist(simulate(mod, 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.