calculateOccurrenceProb | R Documentation |
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.
calculateOccurrenceProb(occur, group)
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 |
a group * species matrix of probabilities
x <- matrix(rbinom(100, size = 1, prob = 0.5), ncol = 10) calculateOccurrenceProb(x, rep(1:2, each = 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.