Skip to content

Commit

Permalink
more #19
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbivand committed Jan 17, 2024
1 parent 179c54c commit 8c2ef1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Version 1.3-2 (development)

* re-corrected #19 because the fitted model weights component may be NULL

* suppress warning from `multcomp::glht` as the test which throws the warning is discarded

# Version 1.3-1 (2023-11-23)
Expand Down
2 changes: 1 addition & 1 deletion R/sarlm_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ print.summary.Sarlm <- function(x, digits = max(5, .Options$digits - 3),
format(signif(x$NK, digits)), "\n")
cat("Number of observations:", length(x$residuals), "\n")
cat("Number of parameters estimated:", x$parameters, "\n")
if (length(unique(x$weights)) == 1L) {
if ((is.null(x$weights) || (!is.null(x$weights) && length(unique(x$weights))) == 1L)) {
cat("AIC: ", format(signif(AIC(x), digits)), ", (AIC for lm: ",
format(signif(x$AIC_lm.model, digits)), ")\n", sep="")
} else {
Expand Down

0 comments on commit 8c2ef1e

Please sign in to comment.