xtdml_data_from_data_frame | R Documentation |
Initalization of DoubleMLData from data.frame
.
xtdml_data_from_data_frame(
df,
x_cols = NULL,
y_col = NULL,
d_cols = NULL,
cluster_cols = NULL,
approach = NULL,
transformX = NULL
)
df |
( |
x_cols |
( |
y_col |
( |
d_cols |
( |
cluster_cols |
( |
approach |
( |
transformX |
( |
Creates a new instance of class xtdml_data
.
# Generate simulated panel dataset from `xtdml`
data = make_plpr_data(n_obs = 500, t_per = 10, dim_x = 30, theta = 0.5, rho=0.8)
# Set up DML data environment
x_cols = paste0("X", 1:30)
obj_xtdml_data = xtdml_data_from_data_frame(data,
x_cols = x_cols, y_col = "y", d_cols = "d",
cluster_cols = "id", approach = "fd-exact",
transformX = "no")
obj_xtdml_data$print()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.