mario.calc_p(v, w)#

Calculate the p price index vector from v and w.

\[p = w^{\mathsf{T}}v^{\mathsf{T}}\mathbf{1}\]
Parameters:
  • v (pandas.DataFrame) – v value added coefficients matrix.

  • w (pandas.DataFrame) – w Leontief inverse matrix.

Returns:

p price index vector.

Return type:

pandas.DataFrame

Notes

Value added is summed over all factor rows before multiplying by w.T. The result has the production nodes on its index and one column named price index.