compsugsStats1D: A function to compute statistics and posterior given...

Description Usage Arguments Value

Description

A function to compute statistics and posterior given clustering and priors

Usage

1
compsugsStats1D(n, nu_0, lambda_0, mu_0, S_0, member, mydata, numclust)

Arguments

n

The vector indicating the number of observations in each cluster

nu_0

The prior degrees of freedom

lambda_0

The prior mean variance

mu_0

The prior mean

S_0

The prior scale vector

member

A vector of cluster membership allocaations

mydata

Data matrix with observations as rows.

numclust

The total number of occupied clusters

Value

The posterior hyperparameters for the normal inverse chisquared distribution


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