Closed MaelAstruc closed 6 months ago
Assuming that nobody uses the named parameter and ignore this issue
Well, one shall never ignore a bug! :-)
I followed the variable renaming path (e989d67). It's the one that makes the most sense because it becomes in line with the lag.formula
function. (Otherwise the argument names differed for the same functionality, which is bad.)
I also reworked the error message which shouldn't have shown l__expand
which is internal cuisine.
Thanks for reporting!
Hello,
I have encountered an issue with the
feols()
function when usingl()
with named parameters.Here is a short example with a panel data from plm:
From my understanding, the error rises because
l__expand()
expects a parameter 'k' instead of 'lag' or 'lead'.I think this could be fixed by:
f()
,d()
andl()
level, this would be the easiest solutionl__expand()
level, but this would be a bad ideaexpand_lags_internal()
function when parsing the function, this would be a bit more fastidious but feasible