FEControlEstimator class

class pytwoway.fecontrol.FEControlEstimator(data, params=None)

Bases: object

Solve two way fixed effect models with control variables. This includes AKM, the Andrews et al. homoskedastic correction, and the Kline et al. heteroskedastic correction.

Parameters
  • data (BipartiteDataFrame) – long or collapsed long format labor data

  • params (ParamsDict or None) – dictionary of parameters for FE estimation. Run tw.fecontrol_params().describe_all() for descriptions of all valid parameters. None is equivalent to tw.fecontrol_params().

fit(rng=None)

Estimate FE model.

Parameters

rng (np.random.Generator or None) – NumPy random number generator; None is equivalent to np.random.default_rng(None)