bccm: Fitting bccm models

Description Usage Arguments Value Examples

Description

bccm is used to fit a block-constrained configuration model.

Usage

1
2
3
bccm(adj, labels, directed = NULL, selfloops = NULL,
  directedBlocks = FALSE, homophily = FALSE, inBlockOnly = FALSE,
  xi = NULL, regular = FALSE)

Arguments

adj

the adjacency matrix of the graph.

labels

vector, the vertex labels to generate the blocks in the bccm.

directed

a boolean argument specifying whether object is directed or not.

selfloops

boolean argument specifying whether the model should incorporate selfloops.

directedBlocks

boolean argument specifying whether the model should incorporate directed blocks. Default to FALSE.

homophily

boolean argument specifying whether the model should fit only homophily blocks. Default to FALSE.

inBlockOnly

boolean argument specifying whether the model should fit only blocks over the diagonal. Default to FALSE.

xi

an optional matrix defining the combinatorial matrix of the model.

regular

optional boolean, fit regular gnp model? if not specified chosen through lr.test.

Value

bccm returns an object of class 'bccm' and 'ghype'. 'bccm' objects expand 'ghype' objects incorporating the parameter estimates.

Examples

1
2
data("vertexlabels","adj_karate")
blockmodel <- bccm(adj = adj_karate, labels = vertexlabels, directed = FALSE, selfloops = FALSE)

gi0na/ghypernet documentation built on May 14, 2019, 5:01 a.m.