Multiplies likelihood of observations from the same individual, or adds the log of them.
apollo_panelProd(P, apollo_inputs, functionality)
List of vectors, matrices or 3-dim arrays. Likelihood of the model components.
List grouping most common inputs. Created by function apollo_validateInputs.
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.
Probabilities at the individual level.
This function should be called inside apollo_probabilities only if the data has a panel structure. It should be called after apollo_avgIntraDraws if intra-individual draws are used.