The variables gvkey and month are track individuals and time in this data. I can estimate mod2 but I can't estimate mod1. It will throw the following error:
Error in feols(short_disagreement ~ l(leverage, 1), my_data, panel.id = c("gvkey", :
All observations contain NAs. Estimation cannot be done. (Breakup: RHS: 39,803.)
I am trying to estimate a simple linear model in a panel setting. I would like to use the
l()
function provided byfixest
. Here is the example:The variables
gvkey
andmonth
are track individuals and time in this data. I can estimatemod2
but I can't estimatemod1
. It will throw the following error:Here is the data in csv format: https://drive.google.com/file/d/1oupZX8iQNQv6_q-2wYlCV-Nax40jAByk/view?usp=sharing
Any ideas on what's happening?