Skip to content

Commit

Permalink
set cat.wls.w = FALSE to avoid problems in setting up the lavaan object
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Aug 9, 2024
1 parent dad2e8d commit aa122e7
Show file tree
Hide file tree
Showing 2 changed files with 3 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.1292
Version: 0.5-5.1293
Authors@R: c(person(given = "Edgar", family = "Merkle",
role = c("aut", "cre"),
email = "[email protected]",
Expand Down
3 changes: 2 additions & 1 deletion R/blavaan.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ blavaan <- function(..., # default lavaan arguments
}

# which arguments do we override?
lavArgsOverride <- c("missing", "estimator", "conditional.x", "parser")
lavArgsOverride <- c("missing", "estimator", "conditional.x", "parser", "cat.wls.w")
if(target != "stan") lavArgsOverride <- c(lavArgsOverride, "meanstructure")
# always warn?
warn.idx <- which(lavArgsOverride %in% dotNames)
Expand Down Expand Up @@ -217,6 +217,7 @@ blavaan <- function(..., # default lavaan arguments
}
dotdotdot$do.fit <- FALSE
dotdotdot$se <- "none"; dotdotdot$test <- "none"
dotdotdot$cat.wls.w <- FALSE
# run for 1 iteration to obtain info about equality constraints, for npar
dotdotdot$control <- list(iter.max = 1, eval.max = 1); dotdotdot$warn <- TRUE
dotdotdot$optim.force.converged <- TRUE
Expand Down

0 comments on commit aa122e7

Please sign in to comment.