如何将两个(或多个)ERGM 估计的 MCMC 诊断图合并到一张图中,如下例所示?
library(ergm)
library(latticeExtra)
data(florentine)
# Fit two ERGM models
model1 <- ergm(flomarriage ~ edges + kstar(2))
model2 <- ergm(flomarriage ~ edges + kstar(2) + triangle)
mcmc.diagnostic(model1)
mcmc.diagnostic(model2)