coef.mmsbm {NetMix} | R Documentation |
Extract Regression Coefficients for a Fitted mmsbm
Object
Description
Extract Regression Coefficients for a Fitted mmsbm
Object
Usage
## S3 method for class 'mmsbm'
coef(object, param = "All", ...)
Arguments
object |
An object of class |
param |
Character string, which set of parameters should the vcov be extracted for? One
of |
... |
Currently ignored |
Value
For param="DyadCoef"
, a numeric vector. For param="MonadCoef"
, an array
with HMM states along the third dimension. For param="All"
, named list of individual return components.
Author(s)
Santiago Olivella (olivella@unc.edu), Adeline Lo (aylo@wisc.edu), Tyler Pratt (tyler.pratt@yale.edu), Kosuke Imai (imai@harvard.edu)
Examples
library(NetMix)
## Load datasets
data("lazega_dyadic")
data("lazega_monadic")
## Estimate model with 2 groups
lazega_mmsbm <- mmsbm(SocializeWith ~ Coworkers,
~ School,
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 = FALSE))
coef(lazega_mmsbm, "MonadCoef")
[Package NetMix version 0.2.0.2 Index]