This article describes how to go from a Latent Class Choice Model, Hierarchical Bayes, or Ensemble of Models output created in Displayr:

To a variable containing the proportion of correct predictions from the Latent Class or Hierarchical Bayes Choice Model, or Ensemble of Models output.

## Requirements

- A document containing a Latent Class or Hierarchical Bayes Choice Model or Ensemble of Models output created in Displayr.

## Method

- Select the Latent Class Choice Model output in your document.
- From the
**object inspector**, click**SAVE VARIABLE(S) > Proportion of Correct Predictions**. - A new variable will appear in the data set.

## Technical details

Proportion correct information is not able to be saved to a variable for models with simulated data and models created using a CHO data file where respondent IDs were not specified.

Prediction accuracy is measured in terms of the proportion of a respondent's questions in which the best alternative was correctly predicted. If cross-validation is used, the predictions are made on only the holdout (out-of-sample) questions. Otherwise, predictions are made on all of the respondents' questions.

## References

McLean, M. W. (2018, July 24). How to Use Hierarchical Bayes for Choice Modeling in Displayr [Blog post]. Accessed from https://www.displayr.com/how-to-hierarchical-bayes-choice-model-displayr/.

##

Next

How to Do the Statistical Analysis of Choice-Based Conjoint Data

How to Create an Experimental Design for Choice-Based Conjoint

How to Set Up a Choice-Based Conjoint Analysis in Qualtrics

How to Preview a Choice-Based Conjoint Questionnaire

How to Compare Multiple Choice Models

How to Create a Utilities Plot

How to Save Utilities from a Choice Model