simulate.glmmTMB: Simulate from a glmmTMB fitted model

simulate.glmmTMBR Documentation

Simulate from a glmmTMB fitted model

Description

Simulate from a glmmTMB fitted model

Usage

## S3 method for class 'glmmTMB'
simulate(object, nsim = 1, seed = NULL, re.form = NULL, ...)

Arguments

object

glmmTMB fitted model

nsim

number of response lists to simulate. Defaults to 1.

seed

random number seed

re.form

(Not yet implemented)

...

extra arguments

Details

Random effects are also simulated from their estimated distribution. Currently, it is not possible to condition on estimated random effects.

Value

returns a list of vectors. The list has length nsim. Each simulated vector of observations is the same size as the vector of response variables in the original data set. In the binomial family case each simulation is a two-column matrix with success/failure.


glmmTMB documentation built on Sept. 30, 2024, 9:34 a.m.