apollo_mixUnconditionals function

Returns draws for continuously distributed random parameters in mixture model

Returns draws for continuously distributed random parameters in mixture model

Returns draws (unconditionals) for random parameters in model, including interactions with deterministic covariates.

apollo_mixUnconditionals(model, apollo_probabilities, apollo_inputs)

Arguments

  • 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_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 ‘"components"’ , ‘"conditionals"’ , ‘"estimate"’ (default), ‘"gradient"’ , ‘"output"’ , ‘"prediction"’ , ‘"preprocess"’ , ‘"raw"’ , ‘"report"’ , ‘"shares_LL"’ , ‘"validate"’ or ‘"zero_LL"’ .
  • apollo_inputs: List grouping most common inputs. Created by function apollo_validateInputs .

Returns

List of object, one per random coefficient. With inter-individual draws only, this will be a matrix, with one row per individual, and one column per draw. With intra-individual draws, this will be a three-dimensional array, with one row per observation, inter-individual draws in the second dimension, and intra-individual draws in the third dimension.

Details

This functions is only meant for use with continuous distributions

  • Maintainer: Stephane Hess
  • License: GPL-2
  • Last published: 2025-03-12