Given the estimates of a model, it compares the log-likelihood at the observation level across categories of observations.
apollo_fitsTest(model, apollo_probabilities, apollo_inputs, fitsTest_settings)
Model object. Estimated model object as returned by function apollo_estimate.
Function. Returns probabilities of the model to be estimated. Must receive three arguments:
apollo_beta: Named numeric vector. Names and values of model parameters.
apollo_inputs: List containing options of the model. See apollo_validateInputs.
functionality: Character. Can be either "estimate" (default), "prediction", "validate", "conditionals", "zero_LL", "shares_LL", or "raw".
List grouping most common inputs. Created by function apollo_validateInputs.
List of arguments. It must contain the following elements.
subsamples: Named list of boolean vectors. Each element of the list defines whether a given observation belongs to a given subsample (e.g. by sociodemographics).
Matrix with average log-likelihood at observation level per category (invisibly).
Prints a table comparing the average log-likelihood at the observation level for each category.