add_predictions | R Documentation |
Given user-provided newdata
, expand the object tmb_data
to include predictions corresponding to those new observations
add_predictions(object, newdata, remove_origdata = FALSE)
object |
Output from |
newdata |
New data-frame of independent variables used to predict the response. |
remove_origdata |
Whether to remove original-data to allow faster evaluation.
|
the object fit$tmb_inputs$tmb_data
representing data used during fitting,
but with updated values for slots associated with predictions, where this
updated object can be recompiled by TMB to provide predictions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.