Skip to content

Commit

Permalink
final for 0.4-7
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmerkle committed Mar 1, 2023
1 parent e0470bd commit 87abe3e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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-7.1085
Version: 0.4-7
Authors@R: c(person(given = "Edgar", family = "Merkle",
role = c("aut", "cre"),
email = "merklee@missouri.edu",
Expand Down Expand Up @@ -35,7 +35,7 @@ Description: Fit a variety of Bayesian latent variable models, including confirm
License: GPL (>= 3)
ByteCompile: true
Depends: R(>= 3.5.0), methods, Rcpp(>= 0.12.15)
Imports: stats, utils, graphics, lavaan(>= 0.6-13), coda, mnormt, nonnest2(>= 0.5-5), loo(>= 2.0), rstan(>= 2.21.2), rstantools(>= 1.5.0), RcppParallel (>= 5.0.1), bayesplot, Matrix, future.apply, tmvnsim
Imports: stats, utils, graphics, lavaan(>= 0.6-14), coda, mnormt, nonnest2(>= 0.5-5), loo(>= 2.0), rstan(>= 2.21.2), rstantools(>= 1.5.0), RcppParallel (>= 5.0.1), bayesplot, Matrix, future.apply, tmvnsim
LinkingTo: StanHeaders (>= 2.18.1), rstan (>= 2.21.2), BH (>= 1.69.0), Rcpp (>= 0.12.15), RcppEigen (>= 0.3.3.4.0), RcppParallel (>= 5.0.1)
Suggests: runjags(>= 2.0.4-3), modeest(>= 2.3.3), rjags, cmdstanr, semTools, tinytest
SystemRequirements: GNU make
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Version 0.4-7
## New features
* This is primarily an update to address a C++14 vs C++17 compilation issue identified by CRAN

* But bugs from 0.4-6 have also been fixed



# Version 0.4-6
## New features
* For target = "stan", meanstructure=FALSE is allowed, along with use of sample.cov and sample.nobs instead of raw data
Expand Down
6 changes: 3 additions & 3 deletions R/postpred.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ postpred <- function(samplls = NULL, lavobject = NULL, measure = "logl", thin =
mis <- FALSE
if (any(is.na(unlist(lavdata@X)))) mis <- TRUE

loop.args <- list(X = 1:psamp, future.seed = TRUE, FUN = function(i){
loop.args <- list(X = 1:psamp, FUN = function(i){
## lists to store output (reduced after concatenated across chains)
if (length(discFUN)) {
## Nested lists (iterations within discrepancy functions)
Expand Down Expand Up @@ -194,7 +194,7 @@ postpred <- function(samplls = NULL, lavobject = NULL, measure = "logl", thin =
lavoptions2$verbose <- FALSE
lavoptions2$estimator <- "ML"
if(catmod) lavoptions2$estimator <- "DWLS"
if(!lavoptions2$meanstructure) lavoptions2$missing <- 'listwise' ## to avoid "missing" ll calculations
if(!lavoptions2$meanstructure) lavoptions2$missing <- 'listwise' ## to avoid "missing" ll calculations, possibly from a bug in lavaan 0.6-13
lavoptions2$se <- "none"
lavoptions2$test <- "standard"
lavoptions2$optim.method <- "none"
Expand Down Expand Up @@ -280,7 +280,7 @@ postpred <- function(samplls = NULL, lavobject = NULL, measure = "logl", thin =

result <- list(ind = ind, csdist = csdist, csboots = csboots)
result
})
}, future.seed = TRUE)

res <- do.call("future_lapply", loop.args)

Expand Down

0 comments on commit 87abe3e

Please sign in to comment.