apollo_avgInterDraws {apollo} | R Documentation |
Averages individual-specific likelihood across inter-individual draws.
apollo_avgInterDraws(P, apollo_inputs, functionality)
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 |
Likelihood averaged over inter-individual draws (shape depends on argument functionality
).
"estimate"
: Returns the likelihood of the model averaged across inter-individual draws. Drops all components but "model"
.
"prediction"
: Returns the likelihood of all alternatives and all model components averaged across inter-individual draws.
"validate"
: Same as "estimate"
.
"zero_LL"
: Returns P
without changes.
"conditionals"
: Returns P
without averaging draws. Drops all components but "model"
.
"output"
: Returns the likelihood of all model components averaged across inter-individual draws.
"raw"
: Returns P
without changes.