sample.gamma.mixmod: Internal function to sample the gamma hyperparameter

View source: R/mixmod_gibbs_functions.R

sample.gamma.mixmodR Documentation

Internal function to sample the gamma hyperparameter

Description

Internal function to sample the gamma hyperparameter

Usage

sample.gamma.mixmod(v, ngroup, gamma.possib)

Arguments

v

numeric. A vector of proportions for each of the possible clusters.

ngroup

numeric. The total number of possible clusters.

gamma.possib

numeric. A vector of possible values that gamma can take ranging between 0.1 and 1.

Value

A single numeric value for gamma that falls within gamma.possib for calculation of the log-likelihood.


joshcullen/bayesmove documentation built on Oct. 6, 2023, 3:28 a.m.