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

Description Usage Arguments Value Functions

View source: R/calcspeciesprobs_singlesitetheta.R

Description

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

Usage

1
2
3
pdetection_occupied.ModelSite.theta(Xobs, v.b)

poccupy.ModelSite.theta(Xocc, u.b, lv.coef = NULL, LVvals = NULL)

Arguments

Xobs

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

v.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.

u.b

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

lv.coef

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

LVvals

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 LVvals, each column to a species.

Functions


sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.