double_ml_data_from_matrix {DoubleML} | R Documentation |
Wrapper for Double machine learning data-backend initialization from matrix.
Description
Initalization of DoubleMLData from matrix()
objects.
Usage
double_ml_data_from_matrix(
X = NULL,
y,
d,
z = NULL,
cluster_vars = NULL,
data_class = "DoubleMLData",
use_other_treat_as_covariate = TRUE
)
Arguments
X |
( |
y |
( |
d |
( |
z |
( |
cluster_vars |
( |
data_class |
( |
use_other_treat_as_covariate |
( |
Value
Creates a new instance of class DoubleMLData
.
Examples
matrix_list = make_plr_CCDDHNR2018(return_type = "matrix")
obj_dml_data = double_ml_data_from_matrix(
X = matrix_list$X,
y = matrix_list$y,
d = matrix_list$d)
[Package DoubleML version 1.0.1 Index]