pyperfectforesight.lead_lag_incidence#
- pyperfectforesight.lead_lag_incidence(equations, known_vars=None)[source]#
Detect which variables appear at which time lags in the equations
Parameters:#
- equationslist
List of sympy equations
- known_varsset, optional
Set of declared variable base names (vars_dyn + vars_exo + vars_aux). When provided, only symbols whose base name is in known_vars are recorded, preventing parameters like
rho_1from appearing in the incidence table. When None, every parseablename_<int>symbol is included (legacy behaviour).
Returns:#
dict : Dictionary mapping variable names to sets of lags