Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bic.mixvmf

BIC to choose the number of components in a model based clustering using mixtures of von Mises-Fisher distributions


Description

BIC to choose the number of components in a model based clustering using mixtures of von Mises-Fisher distributions

Usage

bic.mixvmf(x, A, n.start = 20)

Arguments

x

A matrix containing directional data.

A

The maximum number of clusters to be tested. Default value is 3.

n.start

The number of random starts to try. See also R's built-in function kmeans for more information about this.

Details

If the data are not unit vectors, they are transformed into unit vectors.

Value

A list including:

BIC

The BIC values for all the models tested.

A plot

A plot of the BIC values.

runtime

The run time of the algorithm. A numeric vector. The first element is the user time, the second element is the system time and the third element is the elapsed time.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr and Giorgos Athineou <gioathineou@gmail.com>

References

Hornik, K. and Grun, B. (2014). movMF: An R package for fitting mixtures of von Mises-Fisher distributions. Journal of Statistical Software, 58(10):1–31.

See Also

Examples

x <- as.matrix( iris[, 1:4] )
x <- x / sqrt( rowSums(x^2) )
bic.mixvmf(x, 5)

Directional

A Collection of R Functions for Directional Data Analysis

v4.9
GPL-2
Authors
Michail Tsagris, Giorgos Athineou, Anamul Sajib, Eli Amson, Micah J. Waldstein
Initial release
2021-03-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.