Skip to content

Commit

Permalink
absdiffcat() no longer constructs a full sociomatrix when computing t…
Browse files Browse the repository at this point in the history
…he set of achievable differences, unless nodal covariate values are all distinct.
  • Loading branch information
krivit committed Jan 8, 2024
1 parent f869593 commit 402cd69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ergm
Version: 4.6-7289
Date: 2024-01-02
Version: 4.6-7290
Date: 2024-01-08
Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks
Authors@R: c(
person(c("Mark", "S."), "Handcock", role=c("aut"), email="[email protected]"),
Expand Down
3 changes: 2 additions & 1 deletion R/InitErgmTerm.R
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ InitErgmTerm.absdiffcat <- function(nw, arglist, ..., version=packageVersion("er
nodecov <- ergm_get_vattr(attrarg, nw, accept = "numeric")
attrname <- attr(nodecov, "name")

u <- sort(unique(as.vector(abs(outer(nodecov,nodecov,"-")))),na.last=NA)
unodecov <- unique(nodecov)
u <- sort(unique(as.vector(abs(outer(unodecov,unodecov,"-")))),na.last=NA)
u <- u[u>0]

u <- ergm_attr_levels(a$levels, nodecov, nw, levels = u)
Expand Down

0 comments on commit 402cd69

Please sign in to comment.