Learn R Programming

artemis (version 1.1.1)

predict.eDNA_model: Predict eDNA model

Description

Predict values for eDNA model

Usage

# 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(), ...)

Arguments

object

an object of class eDNA_lmer

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.