mario.calc_M(m, Y)#

Calculate the M total (direct+indirect) value added transaction matrix.

\[M = m\,\operatorname{diag}(Y\mathbf{1})\]
Parameters:
  • m (pandas.DataFrame) – m total (direct+indirect) value added coefficients matrix.

  • Y (pandas.DataFrame) – Y final demand matrix.

Returns:

M total (direct+indirect) value added transaction matrix. Each column is scaled by final demand summed over categories for its production node.

Return type:

pandas.DataFrame

Notes

Final demand is summed across its columns, then each column of m is scaled by the corresponding total. The output keeps the factors and production-node axes of m; it does not keep the final-demand category columns of Y.