Hello all,
I'm playing around with the new DiD commands in Stata 18. I found this error:
That runs without problem. But if I change the format of year to monthly, it then throws an error.
I am not sure whether the error is due to margins having trouble managing date variables with a particular format, or due to xthdidregress. I figure formatted date variables should be fully supported.
The same error is thrown with any of the estimators available in xthdidregress and with hdidregress.
I'm playing around with the new DiD commands in Stata 18. I found this error:
Code:
. webuse akc (Fictional dog breed and AKC registration data) . xtset breed year Panel variable: breed (strongly balanced) Time variable: year, 2031 to 2040 Delta: 1 unit . xthdidregress (registered best) (movie), group(breed)
Code:
. format year %tm . xthdidregress twfe (registered best) (movie), group(breed) note: variable _did_cohort, containing cohort indicators formed by treatment variable movie and group variable breed, was added to the dataset. Computing ATETs using margins ... 2129m4 invalid name r(198);
The same error is thrown with any of the estimators available in xthdidregress and with hdidregress.
Comment