apollo_combineModels {apollo} | R Documentation |
Combines model components to create probability for overall model.
apollo_combineModels(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.
|
This function should be called inside apollo_probabilities after all model components have been produced.
It should be called before apollo_avgInterDraws, apollo_avgIntraDraws, apollo_panelProd and apollo_prepareProb, whichever apply.
Argument P
with an extra element called "model", which is the product of all the other elements.