poccupy.ModelSite: Probability of each species occupancy marginal across other...

Description Usage Arguments Details

View source: R/poccupy.R

Description

Probability of each species occupancy marginal across other species, from the full posterior distribution.

Usage

1
poccupy.ModelSite(Xocc, u.b_arr, lv.coef_arr = NULL, LVvals = NULL)

Arguments

u.b_arr

A 3-array of occupancy covariates. Each row is a species, each column is a covariate, and layer is a draw from the posterior.

lv.coef_arr

A 3-array of LV loadings. If NULL then model is assumed to not have latent variables.

LVvals

If a matrix then LVvals are considered simulated and for each possible set of parameters, the probabilities are marginalised of the (prior) LV distribution. If LVvals is an array with 3 dimensions, then the third dimension corresponds to the posterior distribution draw (same as u.b_arr). In this situation the array must have only one row: the row corresponding the model site.

Details

Compute the probability of each species individually (non-joint) using the full posterior distribution for a single ModelSite.


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