Predict values for eDNA model

# S3 method for class 'eDNA_model'
predict(
  object,
  newdata = NULL,
  include_sigma = FALSE,
  interval = FALSE,
  interval_fun = function(x) quantile(x, probs = c(0.05, 0.95)),
  ...
)

# S3 method for class 'eDNA_model_lmer'
predict(object, newdata = NULL, type = c(), ...)

Arguments

object

an object of class eDNA_lm{er}

newdata

optional, data.frame of new observations to predict values for

include_sigma

logical, should the predictions include measurement error?

interval

logical, should the raw predictions be returned (interval = FALSE) or should an interval be computed (interval = TRUE)

interval_fun

a function which computes an interval given a vector of posterior samples

...

additional arguments passed to the interval function

type

the type of the prediction, MORE HERE

Value

either a vector of predictions, or a matrix with the prediction plus interval, depending on the value of interval

Details

Predict methods for an eDNA model fit. Currently, these functions are quite limited.

Author

Matt Espe