calculate_cpcc: Calculates the CPCC for the given input.

Description Usage Arguments Value Author(s) References Examples

Description

Calculates the CPCC for the given input. Should not be used by the user.

Usage

1
calculate_cpcc(x, var_list)

Arguments

x

The weight vector of length n-1, where n is the number of variables, for the first n-1 . See the reference in find_weights for the explanation.

var_list

A list of variables containing the following: data, the relevant data. method, the clustering method. bounds, the bounds on the weights. MMM, Minimal memory mode: see find_weights for details. fk, which only exists if MMM is TRUE: see find_weights for details.

Value

CPCC

The cophenetic correlation coefficient of this clustering with the given weights.

Author(s)

Jeroen van den Hoven

References

Clustering with optimised weights for Gower's metric: Using hierarchical clustering and Quasi-Newton methods to maximise the cophenetic correlation coefficient, Jeroen van den Hoven.

Examples

1
2
3
4
data(mtcars)
L = list(data = mtcars, method = "average", bounds = c(0,1), MMM = FALSE)
x = rep(1/11,10)
calculate_cpcc(x,L)

Jeroentjeh/opthierarch documentation built on May 26, 2019, 7:28 a.m.