Skip to contents

Draws Gaussian responses from the stored fixed effects, random-effect covariance summaries, and residual scale.

Usage

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

Arguments

object

A fitted mm_lmm.

nsim

Number of simulated responses.

seed

Optional random seed.

re.form

Random-effects conditioning. NULL simulates new random effects; NA simulates from the population-level mean only.

...

Reserved for future methods.

Value

A data frame of simulated responses.