apollo_prediction {apollo} | R Documentation |
Calculates apollo_probabilities with functionality="prediction" and extracts one element from the returned list.
apollo_prediction(model, apollo_probabilities, apollo_inputs, modelComponent = "model")
model |
Model object. Estimated model object as returned by function apollo_estimate. |
apollo_probabilities |
Function. Returns probabilities of the model to be estimated. Must receive three arguments:
|
apollo_inputs |
List grouping most common inputs. Created by function apollo_validateInputs. |
modelComponent |
Character. Name of component of apollo_probabilities output to calculate predictions for. Default is "model", i.e. the whole model. |
Structure of predictions are simplified before returning, e.g. list of vectors are turned into a matrix.
A vector containing predictions for component modelComponent
of the model described in apollo_probabilities
.