evanjflack / bacondecomp

Bacon-Goodman decomposition for differences-in-differences with variation in treatment timing.
Other
46 stars 16 forks source link

Error occurs when there is too many controls in the equation #87

Open johnnyctlai opened 3 months ago

johnnyctlai commented 3 months ago

Hi, thanks for the great package. I am trying to use it to estimate an equation that includes controls for unit-specify trends. However, an error occurs when those controls are added. I'm pretty new to the R language, so I'm not completely sure about it. I think it is because of the 500 character cap of the as.character function used in the package. It breaks lines in language objects at 500 characters, and inserts newlines. The names of the control variables are altered because of that. e.g. "control" becomes "\n control"

kylebutts commented 3 months ago

Could you try renaming your control variables to single letter names?