View source: R/sim_outcome_lm.R
sim_outcome_lm | R Documentation |
Simulate a conditionally normally distributed outcome
sim_outcome_lm(data, formula, reg_coefs, resid_sd, seed = NULL, ...)
data |
a |
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 |
resid_sd |
residual standard deviation |
seed |
optional seed value |
... |
other arguments passed to other functions |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.