powered by
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.
data_observed
adjust
data_observed(data, exposure, outcome, confounders = NULL)
Dataframe for bias analysis.
String name of the column in data corresponding to the exposure variable.
data
String name of the column in data corresponding to the outcome variable.
String name(s) of the column(s) in data corresponding to the confounding variable(s).
df <- data_observed( data = df_sel, exposure = "X", outcome = "Y", confounders = c("C1", "C2", "C3") )
Run the code above in your browser using DataLab