Skip to content

"treat" not found #27

@wilsonhernandezbrena

Description

@wilsonhernandezbrena

Hello Marcelo,

Thanks for your work on the very promising tripleddd package!

I have this issue that I cannot fully understand. I moved from the did package to the triplediff to find heterogeneous effects. The did run correctly. However, I got this error after running the tripleddd:

res <- ddd(yname = "street_index", tname = "week", idname = "id", gname = "treat_week", pname = "partition", xformla = ~ 1, control_group = "notyettreated", weightsname = "Shape__Are", boot = T, nboot = 1000, base_period = "universal", cband = T, cluster = "dis", data = test )

Error en [.data.table(small_groups, , treat):
j (el segundo argumento dentro de [...]) es un símbolo único pero no se encuentra el nombre de la columna 'treat'. Si tenía la intención de seleccionar columnas usando una variable al llamar al ámbito, intente con DT[, ..treat]. El prefijo .. transmite un nivel superior similar a la ruta de un sistema de archivos.

This data is collapsed at the sub_district level and has only 390 observations. When I collapsed it at the district level (N=1590), the error was that subgroup 2 may have insufficient data.

Would the error I first pointed out also be related to the sample size? I have approximately 30 periods for more than 10 treated groups (all yet-to-be-treated) with heterogeneous treatment timing. I attach the data in case it is useful.

test.csv

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions