Learn R Programming

PCIT (version 1.5-3)

clusteringCoefficientPercent: 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.

See Also

clusteringCoefficient

Examples

Run this code
	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)

Run the code above in your browser using DataLab