| predict.tinyVAST | R Documentation |
Predicts values given new covariates using a tinyVAST model
## S3 method for class 'tinyVAST'
predict(
object,
newdata,
remove_origdata = FALSE,
what = c("mu_g", "p_g", "p1_g", "palpha1_g", "pgamma1_g", "pepsilon1_g", "pomega1_g",
"pdelta1_g", "pxi1_g", "p2_g", "palpha2_g", "pgamma2_g", "pepsilon2_g", "pomega2_g",
"pdelta2_g", "pxi2_g"),
se.fit = FALSE,
bias.correct = FALSE,
...
)
object |
Output from |
newdata |
New data-frame of independent variables used to predict the response. |
remove_origdata |
Whether to eliminate the original data from the TMB object, thereby speeding up the TMB object construction. However, this also eliminates information about random-effect variance, and is not appropriate when requesting predictive standard errors or epsilon bias-correction. |
what |
What REPORTed object to output, where
|
se.fit |
Calculate standard errors? |
bias.correct |
whether to epsilon bias-correct the predicted value |
... |
Not used. |
Either a vector with the prediction for each row of newdata, or a named list
with the prediction and standard error (when se.fit = TRUE).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.