SBM: Main function of the Stochastic Block Model (SBM)

Description Usage Arguments Value

View source: R/SBM_main.R

Description

Runs the Gibbs sampler and returns samples from the posterior distribution

Usage

1
SBM(dat, ngroup.loc, ngroup.spp, ngibbs, burnin)

Arguments

dat

matrix has L rows (e.g., locations) and S columns (e.g., species), containing the presence-absence data

ngroup.loc

maximum number of location groups (KL)

ngroup.spp

maximum number of species groups (KS)

ngibbs

number of Gibbs sampler iterations

burnin

number of iterations to discard as part of burn-in phase

Value

this function returns samples from the posterior distribution in the form of a list containing several matrices. These matrices have ngibbs-burnin rows and contain the posterior distribution for:


drvalle1/EcoCluster documentation built on Jan. 25, 2022, 12:46 a.m.