mario.calc_mc(va, s, wcc, vc=None)#

Calculate the mc commodity-side total value added coefficients matrix.

\[m_c = (v_a\,s + v_c)\,w_{cc}\]

When vc=None, the commodity-side direct term is omitted.

Parameters:
  • va (pandas.DataFrame) – Activity-side direct value added coefficients: factors by activity nodes.

  • s (pandas.DataFrame) – Supply coefficients: activity nodes by commodity nodes. Its row axis must match the columns of va.

  • wcc (pandas.DataFrame) – Commodity-to-commodity Leontief inverse. Its row axis must match s.columns.

  • vc (pandas.DataFrame, optional) – Commodity-side direct value added coefficients. Defaults to zero. Its row axis must match va.index and its columns must match s.columns.

Returns:

Total direct and indirect coefficients, with factors on rows and commodity nodes on columns.

Return type:

pandas.DataFrame