pyblp.build_matrix¶
-
pyblp.build_matrix(formulation, data)¶ Construct a matrix according to a formulation.
- Parameters
formulation (Formulation) –
Formulationconfiguration for the matrix. Variable names should correspond to fields indata. Theabsorbargument ofFormulationcan be used to absorb fixed effects after the matrix has been constructed.data (structured array-like) – Fields can be used as variables in
formulation.
- Returns
The built matrix.
- Return type
ndarray
Examples