Skip to content

column name 'treat' is not found #29

@Netanel-bp

Description

@Netanel-bp

Hello,

I have been trying to use the triplediff package. My command is:

att_gt <- ddd(
  yname = "turnout", 
  tname = "year", 
  idname = "did", 
  gname = "year_no", 
  pname = "part_q", 
  xformla = ~cov1,
  data = df, 
  control_group = "notyettreated", 
  base_period = "universal", 
  est_method = "dr"
)

Whatever I do, I cannot run the function because I always get this error message:

Error in `[.data.table`(small_groups, , treat) : 
  j (the 2nd argument inside [...]) is a single symbol but column name 'treat' is not found. If you intended to select columns using a variable in calling scope, please try DT[, ..treat]. The .. prefix conveys one-level-up similar to a file system path.

After some consultation, I believe this is not a mistake from my end, by possibly a bug in the package. Is that the case?

Thank you very much,
Netanel

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