predict.drfit: Predict Detection Efficiency

View source: R/predict.R

predict.drfitR Documentation

Predict Detection Efficiency

Description

A wrapper on dr_predict_de() that by default predicts detection efficiency over the range of distance in data.

Usage

## S3 method for class 'drfit'
predict(
  object,
  distance = NULL,
  by = "Station",
  conf_level = 0.95,
  estimate = median,
  ...
)

Arguments

object

The object.

distance

A vector of the distances to predict detection efficiency at. If NULL, a vector of length 30 spanning the range of the Distance in the data is generated.

by

A string of the column indicating group to derive predictions at.

conf_level

A number between 0 and 1 of the confidence level.

estimate

A function to calculate the estimate.

...

Unused parameters.

Details

It is useful for plotting purposes.

See Also

dr_predict_de()

Examples

fit <- dr_fit(detrange::range_obs)
predict(fit)

Freshwater-Fish-Ecology-Laboratory/detrange documentation built on Oct. 30, 2024, 1:10 p.m.