chaisemartinPackages / did_multiplegt_dyn

|| Stata | R || Estimation of event-study Difference-in-Difference (DID) estimators in designs with multiple groups and periods, and with a potentially non-binary treatment that may increase or decrease multiple times.
23 stars 6 forks source link

by and by_path setting #64

Open lbiagini75 opened 6 days ago

lbiagini75 commented 6 days ago

I try to use this setting with a binary variable "sel_1" (numeric no factor) in R but the code report this error

Error in if (!did_multiplegt_dyn_by_check(df, group, by)) { : 
  missing value where TRUE/FALSE needed
chaisemartinPackages commented 3 days ago

Hi Luigi, This is Diego from Clément de Chaisemartin's RA Team. Thanks for your interest in DIDmultiplegtDYN! This error message could only appear if one of the arguments from that line is missing. To this end, could you share with me the code that you use to call the command where this bug happens? It would be first-best if you could also share a reduced version of your data where this bug still occurs. In this way, I would be able to debug with more precision. In any case, you could send you code and/or data to: chaisemartin.packages@gmail.com. Let me know if this works for you. Best, Diego