Skip to content

Commit

Permalink
modify list structure of inits for vb()
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Aug 28, 2023
1 parent 687d4bf commit 48af49d
Show file tree
Hide file tree
Showing 3 changed files with 9 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.4-9.1158
Version: 0.4-9.1159
Authors@R: c(person(given = "Edgar", family = "Merkle",
role = c("aut", "cre"),
email = "merklee@missouri.edu",
Expand Down
9 changes: 7 additions & 2 deletions R/blav_object_methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,13 @@ function(object, header = TRUE,
}
PE$group[PE$group == 0] <- 1

attributes(PE)$information <- "MCMC"
attributes(PE)$se <- "MCMC"
if(object@call$target == "vb") {
attributes(PE)$information <- "VB"
attributes(PE)$se <- "VB"
} else {
attributes(PE)$information <- "MCMC"
attributes(PE)$se <- "MCMC"
}
## 95% HPD; FIXME display blanks for equality-constrained parameters
## (like Std.Err column)

Expand Down
1 change: 1 addition & 0 deletions R/blavaan.R
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ blavaan <- function(..., # default lavaan arguments
rjcall <- "stan"
} else if(usevb){
rjcall <- "vb"
rjarg$init <- rjarg$init[[1]]
} else if(target == "cmdstan"){
fname <- paste0("stanmarg_", packageDescription("blavaan")["Version"])
fdir <- paste0(cmdstanr::cmdstan_path(), "/")
Expand Down

0 comments on commit 48af49d

Please sign in to comment.