Edetperspecies.jsodm: Expected number of detections per species per site

View source: R/Edetperspecies.R

Edetperspecies.jsodmR Documentation

Expected number of detections per species per site

Description

For each species individually calculates the expected number of detections at each ModelSite. As this is the expected value, and each species treated individually, the same method can be applied to jsodm_lv models.

Usage

Edetperspecies.jsodm(fit, desiredspecies = fit$species)

Odetperspecies(fit, y = NULL)

Arguments

fit

A fitted jsodm

desiredspecies

List of species names to include in the calculations

Value

An array of expected number of detections per modelsite x species x draw.

Functions

  • Odetperspecies: Get observed detections per model site x species from the 'y' data in the fitted object.

Examples

fit <- readRDS("../sflddata/private/data/testdata/cutfit_7_4_11_2LV.rds")
fit <- translatefit(fit)
Endet <- Edetperspecies.jsodm(fit)

sustainablefarms/msod documentation built on March 6, 2023, 7:17 a.m.