pdetection_occupied.ModelSite.theta: Probability of detection and occupation for a single...

View source: R/calcspeciesprobs_singlesitetheta.R

pdetection_occupied.ModelSite.thetaR Documentation

Probability of detection and occupation for a single ModelSite and parameter set

Description

Probability of detection and occupation for a single ModelSite and parameter set

Usage

pdetection_occupied.ModelSite.theta(Xobs, det.b)

## S3 method for class 'ModelSite.theta'
poccupy(Xocc, occ.b, lv.b = NULL, lv.v = NULL)

Arguments

Xobs

A matrix of detection covariates, each row is a visit.

det.b

Covariate loadings. Each row is a species, each column a detection covariate

Xocc

A matrix of occupancy covariates. Must have a single row. Columns correspond to covariates.

occ.b

Covariate loadings for occupancy. Each row is a species, each column an occupancy covariate.

lv.b

Loadings for the latent variables. Each row is a species, each column corresponds to a LV.

lv.v

A matrix of LV values. Each column corresponds to a LV. To condition on specific LV values, provide a matrix of row 1.

Value

A matrix of detection probabilities for each row of Xobs and each species. Rows in returned value correspond to rows in Xobs, columns correspond to species.

A matrix of occupancy probabilities. Each row corresponds to a row of lv.v, each column to a species.

Methods (by generic)

  • poccupy: The probability of occupation for given LV values.


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