MixedLogit.make_control_function#
- MixedLogit.make_control_function(n_obs, n_alts)[source]#
Create control function for price endogeneity correction.
Implements a control function approach where: 1. Price is modeled as a function of instruments 2. Price errors are computed 3. Price errors are included in utility with correlation parameter
- Parameters:
- Returns:
- price_error_contrib
TensorVariable Contribution to utility from price endogeneity, shape (n_obs, n_alts)
- price_error_contrib