Skip to content

Commit

Permalink
fixes #67
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Oct 18, 2023
1 parent 5760ab5 commit f8a4310
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.1183
Version: 0.5-2.1185
Authors@R: c(person(given = "Edgar", family = "Merkle",
role = c("aut", "cre"),
email = "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions R/lav_export_stanmarg.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ matattr <- function(free, est, constraint, mat, Ng, std.lv, wig, ...) {
lampar12 <- lamfree2[[i]][,fpar[j,2]]
## see whether any are equality constrained
l1match <- match(lampar1, constraint$rhs, nomatch = 0L)
transconst <- transtab[match(constraint$lhs[l1match], transtab[,1]), 2]
transconst <- transtab[match(constraint$lhs[l1match], transtab[,1]), 2*i]
lampar12[l1match != 0] <- as.numeric(transconst)
if (all(lampar12 == 0)) { # ov converted to lv
l1 <- 1
Expand All @@ -127,7 +127,7 @@ matattr <- function(free, est, constraint, mat, Ng, std.lv, wig, ...) {
lampar2 <- lamfree[[i]][,fpar[j,1]]
lampar22 <- lamfree2[[i]][,fpar[j,1]]
l2match <- match(lampar2, constraint$rhs, nomatch = 0L)
transconst <- transtab[match(constraint$lhs[l2match], transtab[,1]), 2]
transconst <- transtab[match(constraint$lhs[l2match], transtab[,1]), 2*i]
lampar22[l2match != 0] <- as.numeric(transconst)
if (all(lampar22 == 0)) {
l2 <- 1
Expand Down

0 comments on commit f8a4310

Please sign in to comment.