SampleRC: Sample Random Cluster

Description Usage Arguments Value

Description

Function to sample from the Random Cluster model. Currently this function works with the coupling from the past algorithm that is used in Grimmit (2006).

Usage

1
SampleRC(p, q, n.nodes, n.iter, verbose = TRUE, mat = FALSE)

Arguments

p

The probability of forming an edge

q

The cluster coefficient from the Random Cluster model

n.nodes

The number of nodes in the network

n.iter

The maximum number of iterations to run CFTP

verbose

Whether to print the progress

mat

Whether to return adjacency matrix

Value

Returns a matrix with samples from the random cluster model.


TimoMatzen/RandomCluster documentation built on May 15, 2019, 11:48 a.m.