Skip to content

Commit

Permalink
In mcmc.diagnostics.ergm(), tweaked the statistic name abbreviation a…
Browse files Browse the repository at this point in the history
…lgorithm settings.

references #500
  • Loading branch information
krivit committed Jan 19, 2023
1 parent d59fbb3 commit 11d659b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.4-7157
Date: 2023-01-09
Version: 4.4-7158
Date: 2023-01-19
Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks
Authors@R: c(
person("Mark S.", "Handcock", role=c("aut"), email="[email protected]"),
Expand Down
4 changes: 2 additions & 2 deletions R/mcmc.diagnostics.ergm.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ mcmc.diagnostics.ergm <- function(object,
}

if(compact){
varnames(sm) <- abbreviate(varnames(sm), compact, use.classes=FALSE, method="both.sides")
varnames(sm) <- abbreviate(varnames(sm), compact)

if(!is.null(sm.obs)){
varnames(sm.obs) <- abbreviate(varnames(sm.obs), compact, use.classes=FALSE, methods="both.sides")
varnames(sm.obs) <- abbreviate(varnames(sm.obs), compact)
}
}else compact <- getOption("digits")+2

Expand Down

0 comments on commit 11d659b

Please sign in to comment.