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", "palpha_g", "pgamma_g", "pepsilon_g", "pomega_g", "pdelta_g",
"pxi_g", "p2_g", "palpha2_g", "pgamma2_g", "pepsilon2_g", "pomega2_g", "pdelta2_g",
"pxi2_g"),
se.fit = 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? |
... |
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.