sim_outcome_lm: Simulate a conditionally normally distributed outcome

View source: R/sim_outcome_lm.R

sim_outcome_lmR Documentation

Simulate a conditionally normally distributed outcome

Description

Simulate a conditionally normally distributed outcome

Usage

sim_outcome_lm(data, formula, reg_coefs, resid_sd, seed = NULL, ...)

Arguments

data

a data.frame containing covariate data

formula

the model formula

reg_coefs

a vector of regression coefficients. If named, the names will be matched with the names of the design matrix that is created from formula and data.

resid_sd

residual standard deviation

seed

optional seed value

...

other arguments passed to other functions


NErler/simvalidator documentation built on May 17, 2022, 7:54 a.m.