dmdirichlet {krm}R Documentation

Functions related to mixture Dirichlet distribution

Description

Functions related to mixture Dirichlet distribution

Usage

dmdirichlet(x, mAlpha, mixtureCoef)
ddirichlet (x, alpha)
rdirichlet (n, alpha) 
rmdirichlet (mAlpha, mixtureCoef) 
modifyDirichlet (prior, y) 
logIntegrateMixDirichlet(y, prior, tau=1) 
logIntegrateDirichlet (y, alpha) 


Arguments

x

A vector containing a single deviate or matrix containing one random deviate per row.

mAlpha

matrix. Each row is a parameter of Dirichlet

alpha

numeric vector. Parameter for a Dirichlet distribution

mixtureCoef

numeric vector

n

integer

prior

list of two components: alpha and mix.coef

y

numeric vector of counts

tau

numeric

Details

ddirichlet andn rdirichlet are identically copied from MCMCpack


[Package krm version 2022.10-17 Index]