cluster_consistency: Cluster the consistency matrix

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Clusters the consistency matrix, using Gaussian Mixture Modelling on its first principal component. The number of clusters is chosen such that the BIC is maximise

Usage

1
cluster_consistency(cmat, n_clusters = 2:9)

Arguments

cmat

A consistency matrix returned by consistency_matrix

n_clusters

The number of clusters for which to calculate the BIC

Value

A numeric vector indicating to which cluster each cell has been assigned

See Also

consistency_matrix

Examples

1
2
3
data(oui)
cmat <- consistency_matrix(oui)
clusters <- cluster_consistency(cmat)

kieranrcampbell/ouija documentation built on Dec. 2, 2019, 12:44 p.m.