predict.eDNA_model: Predict eDNA model

Description Usage Arguments Details Value Author(s)

View source: R/predict.R

Description

Predict values for eDNA model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## S3 method for class 'eDNA_model'
predict(
  object,
  newdata = NULL,
  include_sigma = FALSE,
  interval = FALSE,
  interval_fun = posterior_interval,
  ...
)

## S3 method for class '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

Details

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

Value

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

Author(s)

Matt Espe


artemis documentation built on Sept. 9, 2021, 1:07 a.m.