mp: The mp function

Description Usage Arguments Examples

View source: R/mp.R

Description

This function allows you to obtain the posterior probability of membership in each cluster for one node at a time.

Usage

1
mp(vec, K)

Arguments

vec

A vector MCMC cluster labelings for a single node

K

the number of clusters specified in the SBM

Examples

1
apply(t(apply(Sigma, 2, mp, K)), 1, which.max)

carter-allen/sbmlhelpers documentation built on Aug. 10, 2020, 10:37 a.m.