View source: R/add_covariates.R
add_covariates | R Documentation |
Specify column names for adjustment variables in model matrix and prior distributions for the model parameters for these covariates (i.e., betas)
add_covariates(covariates, priors)
covariates |
character. Names of columns in the data matrix containing covariates to be adjusted for in the outcome model. Note: the external and treatment flags should not go here. |
priors |
Either a single object of class |
Object of class Covariates
.
add_covariates(
covariates = c("a", "b"),
priors = list(
"a" = prior_normal(0, 1),
"b" = prior_normal(0, 2)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.