NestedLogit.make_model#
- NestedLogit.make_model(X, W, y)[source]#
Build nested logit model.
- Parameters:
- X
np.ndarray Alternative-specific covariates, shape (n_obs, n_alts, n_covariates)
- W
np.ndarrayorNone Fixed covariates, shape (n_obs, n_fixed_covariates)
- y
np.ndarray Observed choices, shape (n_obs,)
- alphas_nestsbool, optional
Whether to include nest-specific intercepts (default is False)
- X
- Returns:
- model
pm.Model PyMC model
- model