Skip to main content

fe

When effects are correlated with the regressors the RE and BE estimators are not consistent.

Source Code: [link]

openbb.econometrics.fe(Y: pd.DataFrame, X: pd.DataFrame, entity_effects: bool = False, time_effects: bool = False)

Parameters

NameTypeDescriptionDefaultOptional
regression_variableslistThe regressions variables entered where the first variable is
the dependent variable.
NoneTrue
datadictA dictionary containing the datasets.NoneTrue
entity_effectsboolWhether to include entity effectsFalseTrue
time_effectsboolWhether to include time effectsFalseTrue

Returns

TypeDescription
Tuple[DataFrame, Any, List[Any], Any]The dataset used,
Dependent variable,
Independent variable,
PanelOLS model with Fixed Effects