Skip to content

Commit

Permalink
ergm_model.ergm_model() no longer clears auxiliaries if the model con…
Browse files Browse the repository at this point in the history
…sists entirely of auxiliaries.
  • Loading branch information
krivit committed Oct 12, 2024
1 parent 2184aab commit 11e3630
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.7-7435
Date: 2024-10-11
Version: 4.7-7439
Date: 2024-10-12
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/ergm_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ ergm_model.ergm_model <- function(object, nw, ..., env=globalenv(), extra.aux=li

## If initialized auxiliaries are present, get rid of them.
np <- nparam(model, byterm = TRUE, canonical = TRUE)
model$terms <- model$terms[np != 0]
if(any(np != 0))
model$terms <- model$terms[np != 0]

if(!terms.only){
model <- ergm.auxstorage(model, nw, term.options=model$term.options, extra.aux=extra.aux)
Expand Down

0 comments on commit 11e3630

Please sign in to comment.