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

optindval

Optimizing Classification by Maximizing Dufrene and Legendre's Indicator Value


Description

optindval is a iterative re-assignment classification algorithm that assigns samples to clusters to maximize the sum of indicator values.

Usage

optindval(comm,clustering,maxitr=100,minsiz=5)

Arguments

comm

a vegetation or other taxon table with samples as rows and taxa as columns

clustering

an index of cluster membership for each sample. May be either a numeric vector of length equal to the number of samples, or an object that inherits from class ‘cluster’

maxitr

the maximum number of iterations to attempt

minsiz

the minimum size cluster to consider reassigning a sample out of

Details

Iterative re-allocation algorithms temporarily re-assign each sample to each of the other possible clusters and calculate a goodness-of-clustering statistic for each re-assignment. The best of all possible re-assignments is then executed and the algorithm iterates until there are no more good re-assignments or the maximum number of iterations is reached. In optindval, the goodness-of-clustering statistic is the sum of Dufrene and Legendre indicator values

Value

a list of class "optindval","clustering" with components:

numitr

the number of iterations performed

sums

a vector of indicator value probability sums

clustering

the vector of cluster memberships (as integers) for each sample

Note

Like many iterative re-assignment algorithms, optindval is likely to be VERY slow from a random start or poor initial condition. optindval is maybe better used to polish existing classifications

Author(s)

David W. Roberts droberts@montana.edu

References

See Also

optpart, opttdev, optsil

Examples

data(shoshveg) # returns a data.frame of vegetation data called shoshveg
dis.bc <- dsvdis(shoshveg,'bray') # generate Bray/Curtis dissimilarity 
                                  # matrix
opt.5 <- optpart(5,dis.bc) # generate 5-cluster optpart
## Not run: res <- optindval(shoshveg,opt.5) # polish the optpart result
## Not run: classmatch(opt.5,res) # see the plot re-assignments

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.