simulate.lad | R Documentation |
lad
modelsSimulate one or more responses from the distribution corresponding to a
fitted lad
object.
## S3 method for class 'lad'
simulate(object, nsim = 1, seed = NULL, ...)
object |
an object representing a fitted model. |
nsim |
number of response vectors to simulate. Defaults to 1. |
seed |
an object specifying if and how the random number generator should
be initialized (‘seeded’). For the "lad" method, either |
... |
additional optional arguments. |
For the "lad"
method, the result is a data frame with an attribute
"seed"
. If argument seed
is NULL
, the attribute is the
value of .Random.seed
before the simulation was started.
Tymoteusz Wolodzko and Felipe Osorio
fm <- lad(stack.loss ~ ., data = stackloss)
sm <- simulate(fm, nsim = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.