| apollo_avgInterDraws {apollo} | R Documentation |
Averages across inter-individual draws.
Description
Averages individual-specific likelihood across inter-individual draws.
Usage
apollo_avgInterDraws(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. Setting instructing Apollo what processing to apply to the likelihood function. This is in general controlled by the functions that call
|
Value
Argument P with (for most functionalities) the original contents averaged over inter-individual draws. Shape depends on argument functionality.
-
"components": ReturnsPwithout changes. -
"conditionals": ReturnsPwithout averaging across draws. Drops all components except"model". -
"estimate": ReturnsPcontaining the likelihood of the model averaged across inter-individual draws. Drops all components except"model". -
"gradient": ReturnsPcontaining the gradient of the likelihood averaged across inter-individual draws. Drops all components except"model". -
"output": ReturnsPcontaining the likelihood of all model components averaged across inter-individual draws. -
"prediction": ReturnsPcontaining the probabilities/likelihoods of all alternatives for all model components averaged across inter-individual draws. -
"preprocess": ReturnsPwithout changes. -
"raw": ReturnsPwithout changes. -
"report": ReturnsPwithout changes. -
"shares_LL": ReturnsPwithout changes. -
"validate": ReturnsPcontaining the likelihood of the model averaged across inter-individual draws. Drops all components except"model". -
"zero_LL": ReturnsPwithout changes.