sample.gamma.sam: Sample gamma

Description Usage Arguments Value

View source: R/SAM_gibbs_functions.R

Description

This function generates a sample of the truncated stick breaking prior parameter gamma

Usage

1
sample.gamma.sam(v, ngroups, gamma.possib)

Arguments

v

vector of size KS with the stick-breaking parameters

ngroups

maximum number of species groups (KS)

gamma.possib

set of possible values for gamma

Value

a sample of gamma


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