Skip to content

Issue with gof() in ergm.multi_0.3.0-4214 – ergm.multi crashes R #40

@benrosche

Description

@benrosche

Dear Pavel,

As discussed at Sunbelt 2025, I'm following up with a reproducible example showing how ergm.multi crashes when using gof() with version ergm.multi_0.3.0-4214. The issue occurs with the current ergm.multi version and doesn't seem related to the other package version I have where constraint=~outdegree works. The issue seems specific to my network object, as it doesn't occur with data("Goeyvaerts"). You can download the network object here

The following code crashes R on my end:
`
library(ergm)
library(ergm.multi)

g <- readRDS("Rosche.rds")

gof.ergm <- gof(Networks(g) ~ N(~mutual, ~log(n)), coef = c(0, 0), verbose = TRUE, control = control.gof.formula(nsim = 10))
`
I'd really appreciate any insight you might have into what's going wrong.
Best wishes, Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions