mario.CoreModel.pc_ex
- CoreModel.pc_ex(*, scenario: str = 'baseline')#
Return commodity-side exploded price-index contributions for SUT.
\[\begin{split}p_{c,\mathrm{ex}} = \begin{bmatrix} \operatorname{diag}(v_a^{\mathsf{T}}\mathbf{1})s\,w_{cc} \\ \operatorname{diag}(v_c^{\mathsf{T}}\mathbf{1})w_{cc} \end{bmatrix}\end{split}\]Here each value-added coefficient vector is summed over factor rows before diagonalization. The two blocks are stacked on rows: activity contributors first, then commodity contributors. Column sums recover
pc.This is the aggregated analogue of
mc_ex(): it sums factor rows first and returns activity and commodity contributors stacked on the rows.- Parameters:
scenario – Scenario used to read source matrices.
- Returns:
DataFrame whose rows describe the contributing activity or commodity and whose column sums equal
pc.- Return type:
pandas.DataFrame
Notes
For IOT models use
p_ex(). For the activity side usepa_ex().
The full baseline result is also available as the property db.pc_ex_all.