mario.calc_M
- mario.calc_M(m, Y)#
Calculate the
Mtotal (direct+indirect) value added transaction matrix.\[M = m\,\operatorname{diag}(Y\mathbf{1})\]- Parameters:
m (pandas.DataFrame) –
mtotal (direct+indirect) value added coefficients matrix.Y (pandas.DataFrame) –
Yfinal demand matrix.
- Returns:
Mtotal (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
mis scaled by the corresponding total. The output keeps the factors and production-node axes ofm; it does not keep the final-demand category columns ofY.