ConsensusPartition function

Consensus of Partitions

Consensus of Partitions

Returns the consensus partition among a set of partitions

ConsensusPartition(Part, ngroups = 0, type = "cutree", optim = FALSE, maxiter = 100, plotDendrogram = FALSE, verbose = FALSE)

Arguments

  • Part: Object of class SortingPartition
  • ngroups: Number of groups of the consensus (or ngroups=0 for optimal choice)
  • type: Method (type="cutree" or type="fusion" or type="medoid")
  • optim: Optimisation of the consensus (default is optim=FALSE)
  • maxiter: Maximum number of iterations for fusion algorithm
  • plotDendrogram: Plot of the dendrogram (if type="cutree" initialisation)
  • verbose: Print the initialisation results

Details

The criterion for optimal consensus is the mean adjusted Rand Index between the consensus and the partitions given by the subjects.

If ngroups=0, consensus is computed between 2 and nstimuli-1 and the best consensus is returned.

For type="cutree", the initialisation step is based on cutting the tree generated by clustering the stimuli. For type="fusion", the initialisation step is based on the fusion algorithm. In this case, results are more accurate but the algorithm might be time consuming. For type="medoid", the consensus is the closest partition to all the partitions given by subjects.

For optim=TRUE, a transfer step is performed after the initialisation step.

Returns

List of following components: - Consensus: Consensus

  • Crit: Criterion for consensus

References

Krieger & Green (1999) J. of Classification, 16:63-89

Examples

data(AromaSort) Aroma<-SortingPartition(AromaSort) res<-ConsensusPartition(Aroma,ngroups=0,type="cutree") res ##res<-ConsensusPartition(Aroma,ngroups=0,type="fusion",optim=TRUE) ##res ##res<-ConsensusPartition(Aroma,type="medoid") ##res
  • Maintainer: Philippe Courcoux
  • License: GPL-2
  • Last published: 2017-12-17

Useful links