mixtbern {manet}R Documentation

Single allocation clustering in networks

Description

This function infers K single allocation cluster for actor-event network data.

Usage

mixtbern(y, K = 4, maxT = 5000, seed = 1, verbose = FALSE)

Arguments

y

A n x d actor-event adjacency matrix, whereby y_ij is 1 if actor i attended event j – 0 otherwise.

K

Number of single clusters. Default is set to 4.

maxT

Number of MCMC iterations. Default is set to 5000.

seed

Random seed. Default is 1.

verbose

Set to TRUE if you want to see the steps of the MCMC iterations. Defaults is FALSE.

Value

A manet object consisting of a list with five outputs:

Examples

data(deepsouth)
ds<-mixtbern(deepsouth,K=2,maxT=100)
plot(ds)
summary(ds)

[Package manet version 2.0 Index]