Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.ergmm

Predicted Dyad Values for an ERGMM.


Description

Returns a matrix of expected dyad values based on an ERGMM fit.

Usage

## S3 method for class 'ergmm'
predict(object, ..., type = "post")

Arguments

object

An obejct of class ergmm.

...

Additional arguments. Currently unused.

type

One of "mkl", "start", "mle", "pmean", "mkl", "pmode", "post", an index of the iteration to use, or a list, for the configuration of parameters based on which the prediction is made. An exception is "post", which computes the expected dyad values integrated over the posterior.

Value

A sociomatrix of predicted values. Note that predictions are made for unobserved values (whether structural zeros or unobserved dyads).

See Also

Examples

data(sampson)
monks.fit<-ergmm(samplike~euclidean(d=2,G=3),tofit="mcmc")
heatmap(predict(monks.fit),Rowv=NA,Colv=NA)

latentnet

Latent Position and Cluster Models for Statistical Networks

v2.10.5
GPL-3 + file LICENSE
Authors
Pavel N. Krivitsky [aut, cre] (<https://orcid.org/0000-0002-9101-3362>), Mark S. Handcock [aut], Susan M. Shortreed [ctb], Jeremy Tantrum [ctb], Peter D. Hoff [ctb], Li Wang [ctb], Kirk Li [ctb], Jake Fisher [ctb], Jordan T. Bates [ctb]
Initial release
2020-03-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.