mario.Database.calc_linkages#

db.calc_linkages(...) returns the standard backward and forward linkages.

When multi_mode=False, the dataframe also includes Forward Amplification and Backward Amplification ratios, defined as Total / Direct on the raw linkage values.

When multi_mode=True, the dataframe keeps the Local and Foreign components and adds their Local Share and Foreign Share for each linkage measure.

Database.calc_linkages(scenario='baseline', normalized=True, cut_diag=True, multi_mode=True)#

Calculate backward and forward linkages for one scenario.

Parameters:
  • scenario – Scenario to analyse.

  • normalized – When True, normalize linkage indicators using the standard linkages convention.

  • cut_diag – When True, exclude diagonal terms from the calculation.

  • multi_mode – When True, preserve the multi-regional interpretation of the linkages. This is valid only for multi-regional databases.

Returns:

Linkages payload returned by linkages_calculation(...).

When multi_mode=False, the returned dataframe contains total and direct backward/forward linkages plus Forward Amplification and Backward Amplification ratios computed as Total / Direct on the raw, non-normalized values.

When multi_mode=True, the returned dataframe keeps the Local and Foreign components for each linkage measure and adds Local Share and Foreign Share columns for the same measures.

Return type:

object