Learn R Programming

latentnet (version 2.0)

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.
type
One of "mkl", "start", "mle", "pmean", "mkl", "pmode", "post", an index of the iteration to use, or a ergmm.par object, for the configuration of parameters based on which the prediction is mad
...
Additional arguments. Currently unused.

Value

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

See Also

ergmm

Examples

Run this code
data(sampson)
monks.fit<-ergmm(samplike~latent(d=2,G=3))
heatmap(predict(monks.fit))

Run the code above in your browser using DataLab