Learn R Programming

ldstatsHD (version 1.0.1)

agnesCoef: AGNES coefficient

Description

computes the AGNES coefficient of a graph structure.

Usage

agnesCoef(A)

Arguments

A

matrix or Matrix object with adjacency matrix of a graph.

Value

AGNES coefficient magnitude for the given graph structure.

Details

The input of the AGNES hierarchical algorithm is the dissimilarity matrix of the graph structure A computed by graphCorr. Then the R function agnes is used to calculate the coefficient.

References

Rousseeuw, P., A. Struyf, and M. Hubert (2013). cluster: Cluster Analysis Basics and Extensions.

See Also

lambdaSelection for lambda selection approaches.

Examples

Run this code
# NOT RUN {
EX1        <- pcorSimulator(nobs = 50, nclusters = 2, nnodesxcluster = c(40,30), 
                            pattern = "powerLaw")
y           <- EX1$y
out3        <- huge(y, method = "mb", lambda = 0.4)
PATH        <- out3$path[[1]]
hm          <- agnesCoef(PATH)

 
# }

Run the code above in your browser using DataLab