Currently, pf.bonferroni(), pf.rwolf(), pf.coefplot(), pf.iplot() all require an input type list[Union[Feols, Feiv, Fepois]]. If a FixestMulti object is provided, the functions will return an error:
import pyfixest as pf
data = pf.get_data()
fit = pf.feols("Y + Y2 ~ X1", data = data)
#pf.bonferroni(fit, param = "X1")
# The models argument must be either a list of Feols or Fepois instances, or
# simply a single Feols or Fepois instance. The models argument does not accept instances
# of type FixestMulti - please use models.to_list() to convert the FixestMulti
# instance to a list of Feols or Fepois instances.
pf.bonferroni(fit.to_list(), param = "X1")
# runs without error
It would be nice to internally convert FixestMulti objects to lists by calling the to_list() method internally.
Currently,
pf.bonferroni()
,pf.rwolf()
,pf.coefplot()
,pf.iplot()
all require an input typelist[Union[Feols, Feiv, Fepois]]
. If aFixestMulti
object is provided, the functions will return an error:It would be nice to internally convert
FixestMulti
objects to lists by calling theto_list()
method internally.