simulate_randomeffect: Tidy random effect formula simulation

View source: R/rand_eff_sim.r

simulate_randomeffectR Documentation

Tidy random effect formula simulation

Description

This function simulates the random portion of the model using a formula syntax.

Usage

simulate_randomeffect(data, sim_args, ...)

Arguments

data

Data simulated from other functions to pass to this function. Can pass NULL if first in simulation string.

sim_args

A named list with special model formula syntax. See details and examples for more information. The named list may contain the following:

  • fixed: This is the fixed portion of the model (i.e. covariates)

  • random: This is the random portion of the model (i.e. random effects)

  • error: This is the error (i.e. residual term).

...

Other arguments to pass to error simulation functions.


lebebr01/simglm documentation built on April 8, 2024, 9:03 p.m.