[statnet_help] ergm inquiry

Michał Bojanowski michal2992 at gmail.com
Fri Aug 11 05:52:50 PDT 2023


Hi Julia,

Can you send the GOF plots attached? In what way does the ESP not fit
well? Perhaps it is a matter of changing the decay parameter?

Michal

On Wed, Aug 9, 2023 at 1:00 PM Julia Vassey <vassey at usc.edu> wrote:

>

>

> 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

>

> _______________________________________________

> statnet_help mailing list

> statnet_help at u.washington.edu

> http://mailman13.u.washington.edu/mailman/listinfo/statnet_help




More information about the statnet_help mailing list