MixedLogit.make_model#
- MixedLogit.make_model(X, F, y, observed=True)[source]#
Build mixed logit model with random coefficients.
- Parameters:
- X
np.ndarray Alternative-specific covariates, shape (n_obs, n_alts, n_covariates)
- F
np.ndarrayorNone Fixed covariates, shape (n_obs, n_fixed_covariates)
- y
np.ndarray Observed choices, shape (n_obs,)
- observed: bool
Whether to include observed data in the model
- X
- Returns:
- model
pm.Model PyMC model
- model