bacondecomp icon indicating copy to clipboard operation
bacondecomp copied to clipboard

Error occurs when there is too many controls in the equation

Open johnnyctlai opened this issue 1 year ago • 1 comments
trafficstars

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"

johnnyctlai avatar Aug 08 '24 14:08 johnnyctlai

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

kylebutts avatar Aug 08 '24 20:08 kylebutts