pyblp.Products

class pyblp.Products

Product data structured as a record array.

Attributes in addition to the ones below are the variables underlying \(X_1\), \(X_2\), and \(X_3\).

market_ids

IDs that associate products with markets.

Type

ndarray

firm_ids

IDs that associate products with firms.

Type

ndarray

demand_ids

IDs used to create demand-side fixed effects.

Type

ndarray

supply_ids

IDs used to create supply-side fixed effects.

Type

ndarray

nesting_ids

IDs that associate products with nesting groups.

Type

ndarray

clustering_ids

IDs used to compute clustered standard errors.

Type

ndarray

ownership

Stacked \(J_t \times J_t\) ownership matrices, \(O\), for each market \(t\).

Type

ndarray

shares

Marketshares, \(s\).

Type

ndarray

prices

Product prices, \(p\).

Type

ndarray

ZD

Full set of demand-side instruments, \(Z_D\): excluded demand-side instruments and \(X_1^x\).

Type

ndarray

ZS

Full set of supply-side instruments, \(Z_S\): excluded supply-side instruments and \(X_3\).

Type

ndarray

X1

Linear product characteristics, \(X_1\).

Type

ndarray

X2

Nonlinear product characteristics, \(X_2\).

Type

ndarray

X3

Cost product characteristics, \(X_3\).

Type

ndarray