Skip to content

Commit

Permalink
avoid error if redundant priors are supplied for equality-constrained…
Browse files Browse the repository at this point in the history
… parameters
  • Loading branch information
ecmerkle committed Oct 31, 2023
1 parent bf6d026 commit 28befba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: blavaan
Title: Bayesian Latent Variable Analysis
Version: 0.5-2.1188
Version: 0.5-2.1189
Authors@R: c(person(given = "Edgar", family = "Merkle",
role = c("aut", "cre"),
email = "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion R/stanmarg_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ format_priors <- function(lavpartable, level = 1L) {
prisel <- prisel & (lavpartable$mat == mat)
}

prisel <- prisel & (lavpartable$free > 0)
prisel <- prisel & (lavpartable$free > 0) & !(lavpartable$plabel %in% lavpartable$rhs[lavpartable$op == "=="])
thepris <- lavpartable$prior[prisel]

if (length(thepris) > 0) {
Expand Down

0 comments on commit 28befba

Please sign in to comment.