data_observed {multibias} | R Documentation |
Represent observed causal data
Description
data_observed
combines the observed dataframe with specific identification
of the columns corresponding to the exposure, outcome, and confounders. It is
an essential input of all adjust
functions.
Usage
data_observed(data, exposure, outcome, confounders = NULL)
Arguments
data |
Dataframe for bias analysis. |
exposure |
String name of the column in |
outcome |
String name of the column in |
confounders |
String name(s) of the column(s) in |
Examples
df <- data_observed(
data = df_sel,
exposure = "X",
outcome = "Y",
confounders = c("C1", "C2", "C3")
)
[Package multibias version 1.6.2 Index]