Learn R Programming

migraph (version 0.7.1)

blockmodel: Blockmodelling

Description

Blockmodelling

Usage

blockmodel_concor(
  object,
  p = 1,
  cutoff = 0.999,
  max.iter = 25,
  block.content = "density"
)

# S3 method for blockmodel print(x, ...)

Arguments

object

A migraph-consistent object (matrix, igraph, tidygraph).

p

An integer representing the desired number of partitions.

cutoff

A value between 0 and 1 used to determine convergence.

max.iter

An integer representing the maximum number of iterations.

block.content

A string indicating which method to use for calculating block content. Options are: "density", "sum", "meanrowsum", "meancolsum", "median", "min", "max".

x

An object of class "blockmodel"

...

Additional arguments passed to generic print method

References

Breiger, R.L., Boorman, S.A., and Arabie, P. 1975. An Algorithm for Clustering Relational Data with Applications to Social Network Analysis and Comparison with Multidimensional Scaling. Journal of Mathematical Psychology, 12: 328--383.

Examples

Run this code
# NOT RUN {
mex_concor <- blockmodel_concor(mpn_elite_mex)
mex_concor
plot(mex_concor)
usa_concor <- blockmodel_concor(mpn_elite_usa_advice)
usa_concor
plot(usa_concor)
# }

Run the code above in your browser using DataLab