View source: R/apollo_sharesTest.R
apollo_sharesTest | R Documentation |
Comparing the shares predicted by the model with the shares observed in the data, and conducts statistical tests.
apollo_sharesTest(
model,
apollo_probabilities,
apollo_inputs,
sharesTest_settings
)
model |
Model object. Estimated model object as returned by function apollo_estimate. |
apollo_probabilities |
Function. Returns probabilities of the model to be estimated. Must receive three arguments:
|
apollo_inputs |
List grouping most common inputs. Created by function apollo_validateInputs. |
sharesTest_settings |
List. Contains settings for this function. User input is required for all settings except those with a default or marked as optional.
|
This is an auxiliary function to help guide the definition of utility functions in a choice model. By comparing the predicted and observed shares of alternatives for different categories of the data, it is possible to identify what additional explanatory variables could improve the fit of the model.
Nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.