Description Usage Arguments Details Value
View source: R/apollo_prediction.R
Calculates apollo_probabilities with functionality="prediction" and extracts one element from the returned list.
1 2 3 4 5 6 7 | apollo_prediction(
model,
apollo_probabilities,
apollo_inputs,
prediction_settings = list(),
modelComponent = NA
)
|
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. |
prediction_settings |
List of settings. It can have the following elements.
|
modelComponent |
Deprecated. Same as |
Structure of predictions are simplified before returning, e.g. list of vectors are turned into a matrix.
A list containing predictions for component modelComponent
of the model described in apollo_probabilities
.
The particular shape of the prediction will depend on the model component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.