View source: R/double_ml_data.R
double_ml_data_from_data_frame | R Documentation |
Initalization of DoubleMLData from data.frame
.
double_ml_data_from_data_frame(
df,
x_cols = NULL,
y_col = NULL,
d_cols = NULL,
z_cols = NULL,
cluster_cols = NULL,
use_other_treat_as_covariate = TRUE
)
df |
( |
x_cols |
( |
y_col |
( |
d_cols |
( |
z_cols |
( |
cluster_cols |
( |
use_other_treat_as_covariate |
( |
Creates a new instance of class DoubleMLData
.
df = make_plr_CCDDHNR2018(return_type = "data.frame")
x_names = names(df)[grepl("X", names(df))]
obj_dml_data = double_ml_data_from_data_frame(
df = df, x_cols = x_names,
y_col = "y", d_cols = "d")
# Input: Data frame, Output: DoubleMLData object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.