# 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",
panel_id = "id",
time_id = "time",
cluster_cols = "id",
approach = "fd-exact",
transformX = "no")
obj_xtdml_data$print()
Run the code above in your browser using DataLab