MaxDiffMixedLogit.make_model#
- MaxDiffMixedLogit.make_model(arrays, observed=True)[source]#
Build the MaxDiff PyMC model.
- Parameters:
- arrays
MaxDiffArrays Preprocessed padded-plus-mask representation of the tasks.
- observedbool, default
True Whether to attach observed data to the Categorical likelihoods. When False, the model can be used for forward simulation.
- arrays
- Returns:
pm.ModelModel with
beta_item/beta_item_r(intercept mode) orbeta_feat/U_item_r(part-worths mode) plus two observedCategoricallikelihoodsbest_pick/worst_pick.