Predict values for eDNA model
# S3 method for eDNA_model
predict(
object,
newdata = NULL,
include_sigma = FALSE,
interval = FALSE,
interval_fun = posterior_interval,
...
)# S3 method for eDNA_model_lmer
predict(object, newdata = NULL, type = c(), ...)
an object of class eDNA_lmer
optional, data.frame of new observations to predict values for
logical, should the predictions include measurement error?
logical, should the raw predictions be returned
(interval = FALSE
) or should an interval be computed
(interval = TRUE
)
a function which computes an interval given a vector of posterior samples
additional arguments passed to the interval function
the type of the prediction, MORE HERE
either a vector of predictions, or a matrix with the
prediction plus interval, depending on the value of
interval
Predict methods for an eDNA model fit. Currently, these functions are quite limited.