Open MatthieuStigler opened 1 month ago
Hi @xuyiqing
I believe the error is because when CV-selected r is 0, method
is set to fe
, but this case is not covered by one.nonpara()
, i.e. ?
To see this, run: fixInNamespace("fect.boot", "fect")
and add browser()
at line 758, you will see that method=fe
and that hence boot
is not defined, explaining the message
one.nonpara(boot.seq[j])
It seems also that one.nonpara()
does not cover either the case of method=fe
for vartype="parametric"
?
Thanks!
Running
method="gsynth"
when selected model has r=0 andse=TRUE
leads to the error:reprex
This reprex simulates a dataset with two-way FE so that the resulting model chosen has r=0 so fails. I guess the problem is due to r=0 since setting
r=1:5
the model will run fine.Created on 2024-10-15 with reprex v2.1.1