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

bestopt

Best Of Set Optimal Partitions From Random Starts


Description

Produces a specified number of optpart solutions from random starts, keeping the best result of the set

Usage

bestopt(dist,numclu,numrep,maxitr=100)

Arguments

dist

an object of class ‘dist’ from dist, vegdist, or dsvdis, or a symmetric dissimilarity matrix

numclu

the number of clusters desired

numrep

the number of random starts requested

maxitr

the maximum number of iterations per replicate

Details

calls function optpart with an random initial assignment of items to clusters ‘numitr’ times, keeping the best result (highest within/among ratio observed). See optpart for more details.

Value

an object of class partana, with components:

ptc

the mean similarity of each item to each cluster

ctc

the mean similarity of each cluster to other clusters

musubx

the membership of each item in each cluster

clustering

the best ‘crisp’ partition from musubx

ratio

the within-cluster/among-cluster similarity ratio achieved at each iteration of the selected result.

Note

This is a simple wrapper function to automate independent random starts of function optpart.

Author(s)

David W. Roberts droberts@montana.edu

See Also

Examples

data(shoshveg)
dis.bc <- dsvdis(shoshveg,'bray/curtis')
x <- bestopt(dis.bc,5,10)
summary(x)
## Not run: plot(x)

optpart

Optimal Partitioning of Similarity Relations

v3.0-3
GPL (>= 2)
Authors
David W. Roberts <droberts@montana.edu>
Initial release

We don't support your browser anymore

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