gEconpy.model.statistics.check_bk_condition#
- gEconpy.model.statistics.check_bk_condition(model, *, A=None, B=None, C=None, D=None, tol=1e-08, on_failure='ignore', return_value='dataframe', **linearize_model_kwargs)#
Compute the generalized eigenvalues of system in the form presented in [1].
Per [2], the number of unstable eigenvalues (\(|v| > 1\)) should not be greater than the number of forward-looking variables. Failing this test suggests timing problems in the definition of the model.
- Parameters:
- model: Model
DSGE model.
- A, B, C, D
np.ndarray, optional Jacobian matrices. If not all provided,
model.linearize_modelis called.- tol
float Tolerance for zero.
- on_failure
str 'raise'or'ignore'.- return_value
strorNone 'dataframe','bool', or None.- **linearize_model_kwargs
Forwarded to
model.linearize_model.
- Returns: