mario.calc_p
- mario.calc_p(v, w)#
Calculate the
pprice index vector fromvandw.\[p = w^{\mathsf{T}}v^{\mathsf{T}}\mathbf{1}\]- Parameters:
v (pandas.DataFrame) –
vvalue added coefficients matrix.w (pandas.DataFrame) –
wLeontief inverse matrix.
- Returns:
pprice 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 namedprice index.