powered by
This function infers K single allocation cluster for actor-event network data.
mixtbern(y, K = 4, maxT = 5000, seed = 1, verbose = FALSE)
A n x d actor-event adjacency matrix, whereby y_ij is 1 if actor i attended event j -- 0 otherwise.
Number of single clusters. Default is set to 4.
Number of MCMC iterations. Default is set to 5000.
Random seed. Default is 1.
Set to TRUE if you want to see the steps of the MCMC iterations. Defaults is FALSE.
A manet object consisting of a list with five outputs:
p.allocation.chain A maxT x n x K array with the posterior probabilities of allocation to the heir clusters.
p.event.chain A maxT x K x d array with the cluster - posterior probabilities of attendance to events.
p.community.chain A maxT x K matrix with the heir cluster proportions.
adj The original adjacency matrix.
proc.time The computational time.
# NOT RUN { data(deepsouth) ds<-mixtbern(deepsouth,K=2,maxT=100) plot(ds) summary(ds) # }
Run the code above in your browser using DataLab