pyblp.ProblemResults.compute_costs

ProblemResults.compute_costs(market_id=None)

Estimate marginal costs, \(c\).

Marginal costs are computed with the \(\eta\)-markup equation in (7):

(1)\[c = p - \eta.\]
Parameters

market_id (object, optional) – ID of the market in which to compute marginal costs. By default, marginal costs are computed in all markets and stacked.

Returns

Marginal costs, \(c\).

Return type

ndarray

Examples