Skip to content

Commit

Permalink
fix calculation of number of ordered categories
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Sep 4, 2024
1 parent e93005b commit 6bf4882
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-5.1300
Version: 0.5-5.1302
Authors@R: c(person(given = "Edgar", family = "Merkle",
role = c("aut", "cre"),
email = "merklee@missouri.edu",
Expand Down
2 changes: 1 addition & 1 deletion R/lav_export_stanmarg.R
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ lav2standata <- function(lavobject, dosam = FALSE) {
dat$YX <- dat$YX[, -ordidx, drop=FALSE]


nlevs <- 1 + as.numeric( table(pta$th.idx[[1]]) )
nlevs <- 1 + as.numeric( table(pta$th.idx[[1]][pta$th.idx[[1]] != 0L]) )
maxcat <- max(nlevs)

dat$Nord <- length(ordidx)
Expand Down

0 comments on commit 6bf4882

Please sign in to comment.