diff --git a/DESCRIPTION b/DESCRIPTION index 9f0e7db6..d3ce755a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: blavaan Title: Bayesian Latent Variable Analysis -Version: 0.4-9.1161 +Version: 0.4-9.1162 Authors@R: c(person(given = "Edgar", family = "Merkle", role = c("aut", "cre"), email = "merklee@missouri.edu", diff --git a/R/blav_object_methods.R b/R/blav_object_methods.R index 6af2f5cd..60c5cb56 100644 --- a/R/blav_object_methods.R +++ b/R/blav_object_methods.R @@ -127,9 +127,11 @@ function(object, header = TRUE, } PE$group[PE$group == 0] <- 1 - if(object@call$target == "vb") { - attributes(PE)$information <- "VB" - attributes(PE)$se <- "VB" + if("target" %in% names(object@call)){ + if(object@call$target == "vb"){ + attributes(PE)$information <- "VB" + attributes(PE)$se <- "VB" + } } else { attributes(PE)$information <- "MCMC" attributes(PE)$se <- "MCMC"