calculateOccurrenceProb: Probability of occurrence for each species in each group

View source: R/predict.R

calculateOccurrenceProbR Documentation

Probability of occurrence for each species in each group

Description

This function takes a binary presence-absence matrix and a vector of group indicators and returns the occurrence probability of each species in each group.

Usage

calculateOccurrenceProb(occur, group)

Arguments

occur

the site * species binary matrix of calibration data used to fit the RIVPACS model

group

a vector of group indicators for the calibration data

Value

a group * species matrix of probabilities

Examples

x <- matrix(rbinom(100, size = 1, prob = 0.5), ncol = 10)
calculateOccurrenceProb(x, rep(1:2, each = 5))

jasonelaw/RIVPACS documentation built on Sept. 27, 2022, 6:34 p.m.