Skip to contents

Simulate responses from a longitudinal GAMLSS-copula model

Usage

# S3 method for class 'gamlss.longitudinal'
simulate(object, nsim = 1, seed = NULL, newdata = NULL, ...)

Arguments

object

A fitted gamlss.longitudinal object.

nsim

Number of simulated response columns.

seed

Optional random seed.

newdata

Optional new data. When supplied, simulation is unconditional: subject identifiers define independent trajectory groups, and the fitted marginal and copula formulas are evaluated on the supplied rows. Responses may be missing.

...

Additional arguments reserved for future methods.

Value

A data frame with one column per simulation.