To refactor multiple methods for Feols to work for both a direct numpy API and the feols and fepois interfaces,
the model needs to know if it can assume information stored when calling feols / fepois - as e.g. model formulas - or not. See #464 for more context.
To do
Therefore, create a model attribute _fml_api_call and set it to True if feols / fepois are called, False otherwise.
Pass this flag to Feols() so that it is available in all methods for Feols.
Context
To refactor multiple methods for
Feols
to work for both a direct numpy API and thefeols
andfepois
interfaces, the model needs to know if it can assume information stored when calling feols / fepois - as e.g. model formulas - or not. See #464 for more context.To do
Therefore, create a model attribute
_fml_api_call
and set it to True if feols / fepois are called, False otherwise.Pass this flag to
Feols()
so that it is available in all methods for Feols.