Replies: 1 comment 3 replies
-
Can you provide the formula for model2? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a directed, binary network:
Network attributes:
vertices = 623
directed = TRUE
hyper = FALSE
loops = FALSE
multiple = FALSE
bipartite = FALSE
total edges= 7811
missing edges= 0
non-missing edges= 7811
Vertex attribute names:
background_colony IF_bee_neighbour IF_neighbour_bee vertex.names
Edge attribute names not shown
And I'm fitting the following model :
model1 <- ergm(net~ edges + gwidegree(3.26, fixed = T) + mutual + gwesp(0.1, fixed=T) +
nodematch("background_colony", diff=TRUE) +
nodecov("IF_bee_neighbour") +
nodecov("IF_neighbour_bee") +
edgecov(net, "codetection"),
reference = ~Bernoulli,
control = control.ergm(#MCMLE.steplength = 0.5,
MCMC.burnin = 20000,
MCMC.samplesize = 5000,
parallel = 4, parallel.type = "PSOCK"),
verbose = TRUE)
Model1 converges successfully when I add either gwodegree or gwidegree. When I try to fit a model2 adding both terms I get:
Error in ergm.MCMLE(init, s, s.obs, control = control, verbose = verbose, :
Number of edges in a simulated network exceeds that in the observed by a factor of more than 20. This is a strong indicator of model degeneracy or a very poor starting parameter configuration. If you are reasonably certain that neither of these is the case, increase the MCMLE.density.guard control.ergm() parameter.
I increased MCMLE.density.guard.min to 300000 but model2 remains stuck at iteration1
I suppose the issue is due to the strong positive correlation between in- and out-degree in my network (individuals with more incoming ties also have more outgoing ties). How should I deal with this?
Basically I want to understand if the effects obtained for mutuality, triangles, nodal attributes, homophily in model1 are reliable when only gwodegree or gwidegree are included separately. Does model1 takes into account the correlation?
Any help appreciated!
Beta Was this translation helpful? Give feedback.
All reactions