double_ml_data_from_data_frame {DoubleML} | R Documentation |
Wrapper for Double machine learning data-backend initialization from data.frame.
Description
Initalization of DoubleMLData from data.frame
.
Usage
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
)
Arguments
df |
( |
x_cols |
( |
y_col |
( |
d_cols |
( |
z_cols |
( |
cluster_cols |
( |
use_other_treat_as_covariate |
( |
Value
Creates a new instance of class DoubleMLData
.
Examples
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
[Package DoubleML version 1.0.1 Index]