[statnet_help] ergm inquiry
Julia Vassey
vassey at usc.edu
Wed Aug 9 03:59:32 PDT 2023
Dear All,
This is my first time posting a question in statnet help. If the question
needs to be posted/sent to a different email please let me know.
I have a question related to ergm. I am running an ergm model on a directed
unipartite network of ~100 nodes (certain social media users) and ~700
edges. The model includes geolocation attributes of the nodes (geographic
regions) and themes the nodes post about on social media. The model
also includes terms (mutual, gwesp) provided in the code below.
I am struggling with achieving a decent goodness of fit for edgewise shared
partners using gof function. i/o degree, geodesic distance and model
statistics look much better. I tried different things to try to improve
edgewise shared partners, but nothing seems to work. The configuration
below provides the best fit, however, I want to keep trying to improve the
fit for edgewise shared partners. I appreciate any thoughts and comments on
how to achieve this.
model = ergm::ergm(netg_infl ~ edges + nodefactor('region_code', levels =
-4) + nodematch('region_code', diff = T, levels = -3) +
nodefactor('topic_sum_binary', levels = -LARGEST) +
nodefactor('marijuana_recode', levels = -c(1,3)) +
nodefactor('nature_recode', levels = -c(1,3)) +
nodefactor('health_life_recode', levels = -c(1,3)) +
nodefactor('gaming_recode', levels = -c(1,3)) + nodefactor('food_recode',
levels = -c(1,3)) + nodefactor('clothing_recode', levels = -c(1,3)) +
mutual + gwesp(0.28, fixed = TRUE) + offset(isolates), offset.coef = -Inf,
control=control.ergm(parallel=2, parallel.type="PSOCK"))
Thank you,
--
Julia Vassey
Health Behavior Research
Department of Population and Public Health Sciences
Keck School of Medicine
University of Southern California
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/statnet_help/attachments/20230809/95edfbcc/attachment.html>
More information about the statnet_help
mailing list