mario.calc_Ma(ma, s, Yc)#

Calculate the Ma activity-side total value added flows matrix.

\[M_a = m_a\,\operatorname{diag}\!\left(s\,(Y_c\mathbf{1})\right)\]

Final demand is summed across its columns and mapped to activities through s before scaling the multiplier columns. The output columns represent production nodes, rather than final-demand categories.

Parameters:
  • ma (pandas.DataFrame) – Total 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 ma.

  • Yc (pandas.DataFrame) – Commodity final demand: commodity nodes by final-demand categories and regions.

Returns:

Footprint flows with the same index and columns as ma.

Return type:

pandas.DataFrame