Description Usage Arguments Value
View source: R/SBM_gibbs_functions.R
Sample the presence probability for each location and species group (psi) from it's full conditional distribution
1 | sample.psi(z, w, dat, ngroup.loc, ngroup.spp)
|
z |
vector of length L, storing the current membership of each location |
w |
vector of length S, storing the current membership of each species |
dat |
L x S matrix containing the presence-absence data |
ngroup.loc |
maximum number of location groups (KL) |
ngroup.spp |
maximum number of species groups (KS) |
a KL x KS matrix of psi parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.