init_params {CausalModels} | R Documentation |
Initialize CausalModels Package
Description
This function is required to be run first before any other function can run. This will set within the package the global outcome, treatment, and covariate functions for each model to use.
Usage
init_params(outcome, treatment, covariates, data, simple = FALSE)
Arguments
outcome |
the outcome variable of interest (must be continuous). |
treatment |
the treatment with the causal effect of interest on the outcome. |
covariates |
a list/vector of covariate names to be use for confounding adjustment. |
data |
a data frame containing the variables in the model. |
simple |
a boolean indicator to build default formula with interactions. If true, interactions will be excluded. If false, interactions will be included. By default, simple is set to false. |
Value
No return value. Called for parameter initialization.
[Package CausalModels version 0.2.0 Index]