mario.calc_ma
- mario.calc_ma(va, waa, vc=None, u=None)#
Calculate the
maactivity-side total value added coefficients matrix.\[m_a = (v_a + v_c\,u)\,w_{aa}\]When
vc=None, the commodity term is omitted anduis not needed. SupplyingvcwithouturaisesValueError.- 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
vcis supplied.
- Returns:
Total direct and indirect coefficients, with factors on rows and activity nodes on columns.
- Return type:
pandas.DataFrame