mario.calc_ma(va, waa, vc=None, u=None)#

Calculate the ma activity-side total value added coefficients matrix.

\[m_a = (v_a + v_c\,u)\,w_{aa}\]

When vc=None, the commodity term is omitted and u is not needed. Supplying vc without u raises ValueError.

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

  • waa (pandas.DataFrame) – Activity-to-activity Leontief inverse. Its row axis must match the columns of va.

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

  • u (pandas.DataFrame, optional) – Use coefficients: commodity nodes by activity nodes. Required when vc is supplied.

Returns:

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

Return type:

pandas.DataFrame