Skip to content

Commit

Permalink
Fixed bug in adaptive.weights()
Browse files Browse the repository at this point in the history
  • Loading branch information
ekstroem committed Jul 21, 2023
1 parent cf772ac commit d972636
Show file tree
Hide file tree
Showing 3 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
Expand Up @@ -2,7 +2,7 @@ Package: MESS
Type: Package
Title: Miscellaneous Esoteric Statistical Scripts
Version: 0.5.12
Date: 2022-10-25
Date: 2023-07-21
Authors@R: c(person(given="Claus Thorn", family="Ekstrøm", role = c("aut", "cre"), email = "[email protected]"),
person(given="Niels Aske Lundtorp", family="Olsen", role=c("ctb"), email="[email protected]"))
Maintainer: Claus Thorn Ekstrøm <[email protected]>
Expand Down Expand Up @@ -37,4 +37,4 @@ BugReports: https://github.com/ekstroem/MESS/issues
Encoding: UTF-8
ByteCompile: true
License: GPL-2
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

* Fixed code to match changes to the Matrix package
* Added improved residuals for Wallyplot thanks to Niels Aske Lundtorp Olsen
* Fixed a bug in adaptive.weights()

# MESS 0.5.9

Expand Down
2 changes: 1 addition & 1 deletion R/adaptive.weights.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ adaptive.weights <- function(x, y, nu=1, weight.method=c("multivariate", "univar
weight.method <- match.arg(weight.method)

nobs <- nrow(x)
if (nobs+1 <= ncol(x)) {
if ((nobs+1) <= ncol(x)) {
warning("using univariate weight method since p>n")
weight.method <- "univariate"
}
Expand Down

0 comments on commit d972636

Please sign in to comment.