mario.calc_pa
- mario.calc_pa(va, vc, waa, wca)#
Calculate the SUT activity price index
pa.\[p_a = w_{aa}^{\mathsf{T}}v_a^{\mathsf{T}}\mathbf{1} + w_{ca}^{\mathsf{T}}v_c^{\mathsf{T}}\mathbf{1}\]- Parameters:
va (pandas.DataFrame) – Direct value-added coefficients, with factor rows and activity columns. The columns must match the row index of
waa.vc (pandas.DataFrame) – Direct value-added coefficients, with factor rows and commodity columns. The columns must match the row index of
wca.waa (pandas.DataFrame) – Leontief block with activity rows and activity columns.
wca (pandas.DataFrame) – Leontief block with commodity rows and activity columns, matching the columns of
waa.
- Returns:
Price index, indexed by activity nodes, with one column named
price index.- Return type:
pandas.DataFrame
Notes
All value-added factor rows are summed before applying the transposed Leontief blocks. Both activity and commodity direct contributions are included.