[statnet_help] Degree constraint warning

F Benjamin Rosche fbr33 at cornell.edu
Tue Mar 21 07:17:33 PDT 2023


Dear statnet users,

I have a question regarding degree constraints in an ergm. I am using

constraints=~bd(minout=c(...))

to constrain the minimal outdegree of each node to a specific value. When I
run the model, I get the following warning and it is not clear to me
whether I can safely ignore this warning or whether I did not implement the
constraint correctly:

Warning: In is.na(a$minout) && is.na(a$minin): 'length(x) = 16 > 1' in
coercion to 'logical(1)'

Here is a reproducible example:

library(statnet)
data("florentine")
ergm(flomarriage~edges,
constraints=~bd(minout=c(0,0,0,0,2,1,3,0,0,0,0,0,0,0,0,0)))

Thank you very much for any pointers you can provide!

Ben

--
Benjamin Rosche / Social Dynamics Lab / benrosche.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/statnet_help/attachments/20230321/6f4bfb5d/attachment.html>


More information about the statnet_help mailing list