pyblp.ProblemResults.compute_markups

ProblemResults.compute_markups(prices=None, costs=None)

Estimate markups, \(\mathscr{M}\).

The markup of product \(j\) in market \(t\) is

(1)\[\mathscr{M}_{jt} = \frac{p_{jt} - c_{jt}}{p_{jt}}.\]
Parameters
Returns

Estimated markups, \(\mathscr{M}\).

Return type

ndarray

Examples