runsugs1D: The SUGS clustering algorithm by Wang and Dunson (2011) for 1...

Description Usage Arguments Value

Description

The SUGS clustering algorithm by Wang and Dunson (2011) for 1 dimensional data

Usage

1
runsugs1D(iter, mydata, Model)

Arguments

iter

The number of random orderings of the observations for which to run sugs

mydata

Data matrix with observations as rows

Model

Character string indicating whether to use PML, ML or both for model selection. "Both" defaults to PML.

Value

A matrix of cluster allocation, K the number of clusters, a matrix indicating the number of observations allocated to each cluster. The value of the model selection criteria either log PML, log ML or both and the random orderings used


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