simulate,synlik-method | R Documentation |
synlik
.Simulate data or statistics from an object of class synlik
.
## S4 method for signature 'synlik'
simulate(object, nsim, seed = NULL, param = object@param,
stats = FALSE, clean = TRUE, verbose = TRUE, ...)
object |
An object of class |
nsim |
Number of simulations from the model. |
seed |
Random seed to be used. It is not passed to the simulator, but simply passed to |
param |
Vector of parameters passed to |
stats |
If |
clean |
If |
verbose |
If |
... |
additional arguments to be passed to |
If stats == FALSE
the output will that of object@simulator
, which depends on the simulator used by the user.
If stats == TRUE
the output will be a matrix where each row is vector of simulated summary statistics.
Matteo Fasiolo <matteo.fasiolo@gmail.com>
synlik-class
, simulate
.
data(ricker_sl)
# Simulate data
simulate(ricker_sl, nsim = 2)
# Simulate statistics
simulate(ricker_sl, nsim = 2, stats = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.