pyblp.SimulationResults.compute_micro_values

SimulationResults.compute_micro_values(micro_moments)

Compute simulated micro moment values \(v_{mt}\).

Parameters

micro_moments (sequence of Moment) – Configurations for the micro moments. For a list of supported moments, refer to Micro Moment Classes. Since only \(v_{mt}\)’s are computed, the values given when initializing the moments will be ignored.

Returns

Micro moment values, \(v_{mt}\). Rows are in the same order as Simulation.unique_market_ids. Columns are in the same order as micro_moments. If a micro moment is not computed in one or more markets, the associated values will be numpy.nan.

Return type

ndarray

Examples