Skip to content

Commit

Permalink
fix variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Dec 21, 2023
1 parent 72fd52d commit cc89ddd
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.1205
Version: 0.5-2.1207
Authors@R: c(person(given = "Edgar", family = "Merkle",
role = c("aut", "cre"),
email = "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions R/blav_compare.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ blavCompare <- function(object1, object2, ...) {
if(targ1 == "stan" && blavInspect(object1, "meanstructure")){
ll1 <- loo::extract_log_lik(object1@external$mcmcout)
} else if(blavInspect(object1, "categorical") && lavopt1$test != "none"){
if("llnsamp" %in% names(lavopt)){
if("llnsamp" %in% names(lavopt1)){
cat("blavaan NOTE: These criteria involve likelihood approximations that may be imprecise.\n",
"You could try running the model again to see how much the criteria fluctuate.\n",
"You can also manually set llnsamp for greater accuracy (but also greater runtime).\n\n")
Expand All @@ -36,7 +36,7 @@ blavCompare <- function(object1, object2, ...) {
if(targ2 == "stan" && blavInspect(object2, "meanstructure")){
ll2 <- loo::extract_log_lik(object2@external$mcmcout)
} else if(blavInspect(object2, "categorical") && lavopt2$test != "none"){
if("llnsamp" %in% names(lavopt)){
if("llnsamp" %in% names(lavopt2)){
cat("blavaan NOTE: These criteria involve likelihood approximations that may be imprecise.\n",
"You could try running the model again to see how much the criteria fluctuate.\n",
"You can also manually set llnsamp for greater accuracy (but also greater runtime).\n\n")
Expand Down

0 comments on commit cc89ddd

Please sign in to comment.