apollo_weighting {apollo} | R Documentation |
Applies weights to individual observations in likelihood function.
apollo_weighting(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. Can take different values depending on desired output of
|
This function should be called inside apollo_probabilities
, near the end of it, just before return(P)
.
The likelihood (i.e. probability in the case of choice models) of the model in the appropriate form for the given functionality, multiplied by individual-specific weights.