apollo_estimateHB function

Estimates model using Bayesian estimation

Estimates model using Bayesian estimation

Estimates a model using Bayesian estimation on the likelihood function defined by apollo_probabilities.

apollo_estimateHB( apollo_beta, apollo_fixed, apollo_probabilities, apollo_inputs, estimate_settings = NA )

Arguments

  • apollo_beta: Named numeric vector. Names and values for parameters.

  • apollo_fixed: Character vector. Names (as defined in apollo_beta) of parameters whose value should not change during estimation.

  • 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 .

  • estimate_settings: List. Options controlling the estimation process, as used for in apollo_estimate .

Returns

model object

Details

This is a sub function of apollo_estimate which is called when using Bayesian estimation.

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