mario.calc_b
- mario.calc_b(X, Z)#
Calculate the
bintersectoral transaction direct-output coefficients matrix.\[b = \operatorname{diag}(X)^{-1}Z\]- Parameters:
X (pandas.DataFrame) –
Xtotal production vector.Z (pandas.DataFrame) –
Zintersectoral transaction flows matrix.
- Returns:
bintersectoral transaction direct-output coefficients matrix. Rows ofZare scaled by inverse production.- Return type:
pandas.DataFrame
Notes
Inverse production is computed elementwise. A zero production entry has inverse zero, so the corresponding row is set to zero.