drawDPM: Gibbs sampler for Dirichlet Process Mixture of Normals

Description Usage Arguments Value

Description

Gibbs sampler for Dirichlet Process Mixture of Normals

Usage

1
2
drawDPM(X, nDraws = 5000, burnIn = 1000, maxClust = 50, A = 1000,
  xi_sq = NULL, eta1 = 2, eta2 = 2, nu1 = 2, nu2 = 2)

Arguments

X

Vector of input data.

nDraws

Number of draws from the Gibbs sampler (exluding burn-in).

burnIn

Number of burn-in draws.

maxClust

Maximum number of mixture components.

A

Prior parameter.

xi_sq

Prior parameter.

eta1

Prior parameter.

eta2

Prior parameter.

nu1

Prior parameter.

nu2

Prior parameter.

Value

List of MCMC draws for mu (means of mixture components), sigma_sq (variances of mixture components), p (mixing probabilities), alpha, theta, and K (assignment of observations to clusters).


fditraglia/binivdoctr documentation built on May 16, 2019, 12:10 p.m.