Skip to content

Commit

Permalink
fix bugs introduced in v2.1-0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhizuio committed Jun 28, 2024
1 parent 0bdb750 commit 92ae24c
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 54 deletions.
9 changes: 5 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ Package: BayesSUR
Type: Package
Title: Bayesian Seemingly Unrelated Regression Models in
High-Dimensional Settings
Version: 2.1-9
Date: 2024-06-12
Version: 2.2-1
Date: 2024-06-28
DOI: 10.32614/CRAN.package.BayesSUR
URL: https://github.com/mbant/BayesSUR
BugReports: https://github.com/mbant/BayesSUR/issues
Authors@R: c(person("Marco", "Banterle", email = "[email protected]", role = c("aut")),
Expand All @@ -24,14 +25,14 @@ VignetteBuilder: R.rsp, knitr, rmarkdown
RoxygenNote: 7.3.1
Depends: R (>= 3.5.0)
Encoding: UTF-8
LinkingTo: Rcpp, RcppArmadillo (>= 0.9.000)
LinkingTo: Rcpp, RcppArmadillo
Imports: Rcpp, xml2, igraph, Matrix, tikzDevice, stats, utils,
grDevices, graphics
Suggests: R.rsp, knitr, rmarkdown, BDgraph, data.table, plyr, scrime
LazyData: true
NeedsCompilation: yes
SystemRequirements: C++17
Packaged: 2024-06-12 15:34:20 UTC; zhiz
Packaged: 2024-06-28 15:57:26 UTC; zhiz
Author: Marco Banterle [aut],
Zhi Zhao [aut, cre],
Leonardo Bottolo [ctb],
Expand Down
10 changes: 6 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# BayesSUR 2.1-9 (or BayesSUR 2.2-0 for CRAN)
# BayesSUR 2.2-1

* Fixed a bug about the use of temperature parameter in `HRR_Chain.cpp`, also minor update in `SUR_Chain.cpp`
* Fixed random effects' sampler `HRR_Chain::stepW0()`
* Fixed a bug about `SUR_Chain.cpp` introduced in version 2.2-0
* Fixed argument mrfG index issue in function `BayesSUR()`

# BayesSUR 2.1-8
# BayesSUR 2.2-0

* Fixed a bug about the use of temperature parameter in `HRR_Chain.cpp`, also minor update in `SUR_Chain.cpp`
* Fixed random effects' sampler `HRR_Chain::stepW0()`
* Added argument `beta.type` in function `plotEstimator()` to plot MPM coefficient estimates
* Fixed argument `mrfG` index issue in function `BayesSUR()`

Expand Down
1 change: 1 addition & 0 deletions R/BayesSUR.R
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ BayesSUR <- function(data = NULL, Y, X, X_0 = NULL,
if (!(is.character(mrfG) && length(mrfG) == 1)) {
# if it's a matrix
if ((is.numeric(mrfG) || is.data.frame(mrfG)) && !is.null(dim(mrfG))) {
mrfG <- mrfG - 1 # due to C++ indexing from 0
if (ncol(mrfG) == 2) {
mrfG <- cbind(mrfG, rep(1, nrow(mrfG)))
}
Expand Down
Loading

0 comments on commit 92ae24c

Please sign in to comment.