generate_response: Simulate response variable

View source: R/data_reg.r

generate_responseR Documentation

Simulate response variable

Description

Simulate response variable

Usage

generate_response(data, sim_args, keep_intermediate = TRUE, ...)

Arguments

data

Data simulated from other functions to pass to this function.

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).

keep_intermediate

TRUE/FALSE flag indicating whether intermediate steps should be kept. This would include fixed effects times regression weights, random effect summations, etc. Default is TRUE.

...

Other arguments to pass to error simulation functions.


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