summarizeClusters: Show cluster characteristics.

View source: R/betaMix.R

summarizeClustersR Documentation

Show cluster characteristics.

Description

Takes an object obtained from graphComponents and prints and returns summary statistics.

Usage

summarizeClusters(clustersInfo)

Arguments

clustersInfo

Obtained from graphComponents.

Value

A matrix with cluster number, number of nodes, and fivenum summaries for the degrees of nodes in the cluster, and the percentage of edges that are within the cluster.

Examples

## Not run: 
   data(SIM,package = "betaMix")
   res <- betaMix(betaMix::SIM, maxalpha = 1e-6,ppr = 0.01,subsamplesize = 30000, ind=TRUE)
   adjMat <- getAdjMat(res)
   SimComp <- graphComponents(adjMat)
   (summtab <- summarizeClusters(SimComp))

## End(Not run)

haimbar/betaMix documentation built on Jan. 3, 2023, 12:54 p.m.