sugsclusterProb: A function to compute the marginal probability of belong to...

Description Usage Arguments Value

Description

A function to compute the marginal probability of belong to an occupied cluster for the SUGS algorithm

Usage

1
sugsclusterProb(x, K, i, D, n, betaHat, phi, m, nu, S, lambda)

Arguments

x

The current observation under consideration.

K

The number of occupied clusters

i

The current iteration of the SUGS algorithm

D

The number of variables

n

A numeric vector containing the number of observations allocated to each cluster

betaHat

The grid of values for the dirichlet concentration parameter

phi

The weights associated with the dirichlet grid prior

m

The current posterior mean

nu

The current posterior degrees of freedom

S

The current posterior scale vector

lambda

The current posterior for the mean variance

Value

The numeric vector with the unnormalised probability of beloging to each cluster.


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