You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
importpyfixestaspfdata=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.
The text was updated successfully, but these errors were encountered:
s3alfisc
changed the title
Multiple Testing function and pf.coefplot require lists of Feols/Feiv/Fepois object
Multiple Functions require lists of Feols/Feiv/Fepois object; reject FixestMulti
Nov 3, 2024
…FixestMulti #693 (#715)
* Issue # 693 functions that reject FixestMulti
Convert FixestMulti to a list so that it works automatically with the following functions:
- pf.bonferroni()
- pf.rwolf()
- pf.coefplot()
- pf.iplot()
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* updates
* Update test_multcomp.py
Added a test to compare the results when passing a list of Feols/Feiv/Fepois objects vs. a FixestMulti object to bonferroni and rwolf functions.
* Update pixi.lock
pixi.lock file was updated
* Update test_multcomp.py
Minor changes for consistency
* Update summarize.py
handle .coefplot() method for FixestMulti, where models is a dict_values instance.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alexander Fischer <alexander-fischer1801@t-online.de>
Co-authored-by: Hegde <ihegde@Compasslexecon.com>
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.The text was updated successfully, but these errors were encountered: