R: BIC to choose the number of components in a model based...
bic.mixvmf
R Documentation
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)
Arguments
x
A matrix containing directional data.
A
The maximum number of clusters to be tested. Default value is 3.
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@yahoo.gr> and Giorgos Athineou <athineou@csd.uoc.gr>
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
mix.vmf, rmixvmf, mixvmf.contour
Examples
x <- as.matrix( iris[, 1:4] )
x <- x / sqrt( rowSums(x^2) )
bic.mixvmf(x, 5)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Directional)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Directional/bic.mixvmf.Rd_%03d_medium.png", width=480, height=480)
> ### Name: bic.mixvmf
> ### Title: BIC to choose the number of components in a model based
> ### clustering using mixtures of von Mises-Fisher distributions
> ### Aliases: bic.mixvmf
> ### Keywords: Mixtures of von Mises-Fisher distributions BIC of the mixture
> ### models
>
> ### ** Examples
>
> x <- as.matrix( iris[, 1:4] )
> x <- x / sqrt( rowSums(x^2) )
> bic.mixvmf(x, 5)
$bic
1 2 3 4 5
-594.3975 -1489.4761 -1590.8789 -1575.0911 -1561.4591
$runtime
user system elapsed
0.212 0.000 0.211
>
>
>
>
>
> dev.off()
null device
1
>