mario.calc_pc
- mario.calc_pc(va, vc, wac, wcc)#
Calculate the SUT commodity price index
pc.\[p_c = w_{ac}^{\mathsf{T}}v_a^{\mathsf{T}}\mathbf{1} + w_{cc}^{\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
wac.vc (pandas.DataFrame) – Direct value-added coefficients, with factor rows and commodity columns. The columns must match the row index of
wcc.wac (pandas.DataFrame) – Leontief block with activity rows and commodity columns.
wcc (pandas.DataFrame) – Leontief block with commodity rows and commodity columns, matching the columns of
wac.
- Returns:
Price index, indexed by commodity 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.