clusteringCoefficientPercent {PCIT}R Documentation

Calculate the clustering coefficient as a percentage

Description

Given an adjacency matrix, calculate the clustering coefficient as a percentage of non-zero adjacencies.

Usage

  clusteringCoefficientPercent(adj)

Arguments

adj - An adjacency matrix. Calculating the clustering coefficient percentage only makes sense if some connections are zero i.e. no connection.

Value

A numerical between 0 and 100.

Author(s)

Nathan S. Watson-Haigh

See Also

clusteringCoefficient

Examples

        data(PCIT)
        m <- m[1:200,1:200]        # just use a small subset of the data
        result <- pcit(m)
        m[idx(result)] <- 0
        
        clusteringCoefficientPercent(m)

[Package PCIT version 1.02-1 Index]