Predicted Dyad Values for an ERGMM.
Returns a matrix of expected dyad values based on an ERGMM fit.
## S3 method for class 'ergmm' predict(object, ..., type = "post")
object |
An obejct of class |
... |
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. |
A sociomatrix of predicted values. Note that predictions are made for unobserved values (whether structural zeros or unobserved dyads).
data(sampson) monks.fit<-ergmm(samplike~euclidean(d=2,G=3),tofit="mcmc") heatmap(predict(monks.fit),Rowv=NA,Colv=NA)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.