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

crit2cost

Cost function from seriation criterion


Description

Returns a cost function from seriation criterion (package seriation)

Usage

crit2cost(crit)

Arguments

crit

One of seriation::list_criterion_methods("dist")

Examples

require(DendSer) 			

d<- dist(iris[1:20,-5])
h <- hclust(d)
DendSer(h,d,cost=function(x,o,...) criterion(as.dist(x),o,method="AR_deviations"))
DendSer(h,d,cost=crit2cost("AR_deviations")) # short version of above
DendSer(h,d,cost=crit2cost("ME"))

# use DendSer methods via seriate
# get_order(seriate(d,method="Dendser", control=list(hclust=h,cost=costARc))) 
DendSer(h,d,cost=costARc)

DendSer

Dendrogram seriation: ordering for visualisation

v1.0.1
GPL-2
Authors
Catherine B. Hurley and Denise Earle
Initial release
2013-09-09

We don't support your browser anymore

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