Skip to content

Commit 96eb045

Browse files
committed
Fixed naming for esp and dsp gof() effects for directed networks.
1 parent 04a3b7c commit 96eb045

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: ergm
2-
Version: 4.12.1-7995
2+
Version: 4.12.1-7996
33
Date: 2026-02-24
44
Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks
55
Authors@R: c(

R/gof.ergm.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,15 +654,15 @@ InitErgmTerm..gof.espart <- function(nw, arglist, ..., cache.sp = TRUE) {
654654
arglist <- list(0:(network.size(nw) - 2))
655655
f <- InitErgmTerm.esp
656656
term <- f(nw, arglist, ..., cache.sp = cache.sp)
657-
term$coef.names <- gsub("^esp", ".gof.espart#", term$coef.names)
657+
term$coef.names <- gsub("^esp(\\.[A-Z]{3})?", ".gof.espart#", term$coef.names)
658658
term
659659
}
660660

661661
InitErgmTerm..gof.dspart <- function(nw, arglist, ..., cache.sp = TRUE) {
662662
arglist <- list(0:(network.size(nw) - 2))
663663
f <- InitErgmTerm.dsp
664664
term <- f(nw, arglist, ..., cache.sp = cache.sp)
665-
term$coef.names <- gsub("^dsp", ".gof.dspart#", term$coef.names)
665+
term$coef.names <- gsub("^dsp(\\.[A-Z]{3})?", ".gof.dspart#", term$coef.names)
666666
term
667667
}
668668

0 commit comments

Comments
 (0)