Open krivit opened 3 years ago
Thanks, @krivit. I haven't gotten around to it yet, but would like to follow your advice. If you have any suggestions on how to update it, that would be most helpful. I assume you are referring to this part?
nw <- ergm::ergm.getnetwork(form)
model <- ergm::ergm_model(form, nw, initialfit = TRUE)
Clist.miss <- ergm::ergm.design(nw, verbose = FALSE)
control.ergm$init <- c(rep(NA, length(l$rhs.terms) - 1), 1)
pl <- ergm::ergm.pl(nw,
Clist.miss,
model,
theta.offset = c(rep(FALSE, length(l$rhs.terms) - 1), TRUE),
verbose = FALSE,
control = control.ergm)
Yes, I think so. I think a good prototype to work off for this might be ergm::ergmMPLE()
.
Can you remind me:
btergm()
handle missing dyads?target.stats=
in ergm()
)?%ergmlhs%
API?The reason I ask is that there are varying degrees of sophistication with which one can handle constraints.
Right now,
btergm
usesergm.design()
, which is a very crude function, because it only recognises constraints induced byNA
. Using theergm_conlist
API might enable it to handle others. For this and other reasons, the use ofergm.design()
is discouraged and I hope to deprecate it once no one is using it anymore.