Learn R Programming

apollo (version 0.1.0)

apollo_avgIntraDraws: Averages intra-individual draws

Description

Averages observation-specific likelihood across intra-individual draws.

Usage

apollo_avgIntraDraws(P, apollo_inputs, functionality)

Arguments

P

List of vectors, matrices or 3-dim arrays. Likelihood of the model components.

apollo_inputs

List grouping most common inputs. Created by function apollo_validateInputs.

functionality

Character. Description of the desired output from apollo_probabilities. Can take the values: "estimate", "prediction", "validate", "zero_LL", "conditionals", "output", "raw".

Value

Likelihood averaged over intra-individual draws (shape depends on argument functionality).

  • "estimate": Returns the likelihood of the model averaged across intra-individual draws. Drops all components but "model".

  • "prediction": Returns the likelihood of all alternatives and all model components averaged across intra-individual draws.

  • "validate": Same as "estimate".

  • "zero_LL": Returns P without changes.

  • "conditionals": Same as "estimate".

  • "output": Returns the likelihood of all model components averaged across intra-individual draws.

  • "raw": Returns P without changes.