phiUpdate: Function to update posterior for dirichlet concentration...

Description Usage Arguments Value

Description

Function to update posterior for dirichlet concentration parameters.

Usage

1
phiUpdate(phi, i, clustnew, n, betaHat)

Arguments

phi

Current value of posterior dirichlet weights.

i

Current iteration of the SUGS algorithm.

clustnew

The cluster to which the ith observation has allocated.

n

A vector indicating the number of observations allocated to each cluster.

betaHat

The grid prior for the dirichlet concentration parameter.

Value

An update value for phi.


ococrook/sugsvarsel documentation built on May 27, 2019, 12:12 p.m.