Skip to content

Support list of pyfixest models with multiple estimation in mt.ETable #25

@leostimpfle

Description

@leostimpfle

Not sure if this expected, but specifying a list of pyfixest models with multiple estimation syntax currently does not work with mt.ETable.

import pyfixest as pf
import maketables as mt
data = pf.get_data(N=1_000, seed=0, model="Feols")

# This works
fmls = ["Y ~ X1 | f1 + f2", "Y ~ X2 | f1 + f2"]
mt.ETable([pf.feols(fml=fml, data=data) for fml in fmls])

# This also works
mt.ETable(pf.feols(fml="Y ~ X1 | sw0(f1, f2)", data=data))

# This fails with TypeError: No extractor available for model type: FixestMulti from pyfixest.estimation.FixestMulti_
fmls = ["Y ~ X1 | sw0(f1, f2)", "Y ~ X2 | sw0(f1, f2)"]
mt.ETable([pf.feols(fml=fml, data=data) for fml in fmls])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions