simulate.lad {L1pack} | R Documentation |
Simulate responses from lad
models
Description
Simulate one or more responses from the distribution corresponding to a
fitted lad
object.
Usage
## S3 method for class 'lad'
simulate(object, nsim = 1, seed = NULL, ...)
Arguments
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. |
Value
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.
Author(s)
Tymoteusz Wolodzko and Felipe Osorio
Examples
fm <- lad(stack.loss ~ ., data = stackloss)
sm <- simulate(fm, nsim = 4)