Learn R Programming

apollo (version 0.0.1)

apollo_avgIntraDraws: Averages intra-individual draws

Description

Averages the likelihood across intra-individual draws.

Usage

apollo_avgIntraDraws(P, apollo_control, functionality)

Arguments

P

List. Contains the probabilities for each model component, for each inter- and intra-person draw.

apollo_control

List. Contains options for the estimation See apollo_validatecontrol for details.

functionality

Character. Can take different values depending on desired output.

"estimate"

For model estimation, returns probabilities of chosen alternatives.

"prediction"

For model predictions, returns probabilities of all alternatives.

"validate"

Validates input.

"zero_LL"

Return probabilities with all parameters at zero.

"conditionals"

For conditionals, returns probabilities of chosen alternatives.

"output"

Checks that the model is well defined.

"raw"

For debugging, returns probabilities of all alternatives

Value

Average probability over intra-individual draws (shape depends on argument functionality).

Details

This function performs additional checks on the shape of the probabilities given as arguments.