View source: R/summary.mmsbm.R
summary.mmsbm | R Documentation |
The function summarizes the output of a dynMMSBM model object
## S3 method for class 'mmsbm'
summary(object, ...)
object |
An object of class |
... |
Currently ignored |
List with named components:
Total number of dyad-time period observations.
Number of latent groups included in the dynMMSBM model.
Average membership in each latent group, across all node-time periods.
n.groups
by n.groups
matrix of estimated edge formation probabilities between latent groups.
Vector of estimated coefficient values for dyadic covariates.
Array of estimated coefficient values for monadic covariates. Has n.groups
columns,
and n.hmmstates
slices.
Average HMM state probabilities across all time periods.
Santiago Olivella (olivella@unc.edu), Adeline Lo (aylo@wisc.edu), Tyler Pratt (tyler.pratt@yale.edu), Kosuke Imai (imai@harvard.edu)
library(NetMix)
## Load datasets
data("lazega_dyadic")
data("lazega_monadic")
## Estimate model with 2 groups
lazega_mmsbm <- mmsbm(SocializeWith ~ Coworkers,
~ School + Practice + Status,
senderID = "Lawyer1",
receiverID = "Lawyer2",
nodeID = "Lawyer",
data.dyad = lazega_dyadic,
data.monad = lazega_monadic,
n.blocks = 2,
mmsbm.control = list(seed = 123,
conv_tol = 1e-2,
hessian = TRUE))
## Summarize estimated model
summary(lazega_mmsbm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.