sugsclustMarg: Computes the marginal probability of an observation belonging...

Description Usage Arguments Value

Description

Computes the marginal probability of an observation belonging to a currently occupied cluster.

Usage

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

Arguments

x

The observation currently underconsideration.

K

The number of clusters.

i

The current iteration state of the algorithm.

D

The number of variable in the data matrix.

n

The vector indicating the number of observations in each cluster

betaHat

The grid of concentration parameters.

phi

The probability weights of beteHat.

m

The current posterior mean.

nu

The current posterior degrees of freedom.

S

The current posterior scale vector.

lambda

The current posterior mean variance.

intfeature

A binary vector indicating whether features are irrelevant (0) or relevant (1).

Value

The unnormalised probability of belong to any of the currently occupied clusters.


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