Skip to content

Commit

Permalink
correct #19 weights test
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbivand committed Jul 12, 2023
1 parent d038b86 commit 070f90e
Show file tree
Hide file tree
Showing 3 changed files with 8 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: spatialreg
Version: 1.2-9
Date: 2023-05-25
Version: 1.2-10
Date: 2023-07-12
Title: Spatial Regression Analysis
Encoding: UTF-8
Authors@R: c(person("Roger", "Bivand", role = c("cre", "aut"), email = "[email protected]", comment=c(ORCID="0000-0003-2392-6140")),
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Version 1.2-9 (development)
# Version 1.2-10 (development)

* corrected #19 because the fitted model weights component is never NULL, but may have a single unique value

# Version 1.2-9 (2023-05-25)

* raised #39, no support for weights in SEM/SDEM/SLX #39

Expand Down
2 changes: 1 addition & 1 deletion R/spautolm.R
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ print.summary.Spautolm <- function(x, digits = max(5, .Options$digits - 3),
format(signif(sqrt(x$fit$s2), digits)), ")\n", sep="")
cat("Number of observations:", x$fit$N, "\n")
cat("Number of parameters estimated:", x$parameters, "\n")
if (is.null(x$weights)) {
if (length(unique(x$weights)) == 1L) {
cat("AIC: ", format(signif(AIC(x), digits)), "\n", sep="")
} else {
cat("AIC: NA (not available for weighted model)\n", sep="")
Expand Down

0 comments on commit 070f90e

Please sign in to comment.