not saving object because of delta parameterization
maugavilla opened this issue · 2 comments
Hi Ed
Found that the new version is not working simple examples, it fails to save the results objects due to missing arguments I think
when I run the example
HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
fit <- bcfa(HS.model, data=HolzingerSwineford1939)
summary(fit)
I get this error
Error in lav_model_implied(lavmodel, delta = (lavmodel@parameterization == :
unused argument (delta = (lavmodel@parameterization == "delta"))
And no result object is saved
sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] blavaan_0.4-1 Rcpp_1.0.8 lavaan_0.6-10.1660
loaded via a namespace (and not attached):
[1] mvtnorm_1.1-3 lattice_0.20-45 listenv_0.8.0 runjags_2.2.0-3
[5] prettyunits_1.1.1 ps_1.6.0 zoo_1.8-9 assertthat_0.2.1
[9] digest_0.6.29 utf8_1.2.2 parallelly_1.30.0 plyr_1.8.6
[13] R6_2.5.1 nonnest2_0.5-5 ggridges_0.5.3 MatrixModels_0.5-0
[17] stats4_4.1.2 coda_0.19-4 ggplot2_3.3.5 pillar_1.7.0
[21] rlang_1.0.1 SparseM_1.81 callr_3.7.0 Matrix_1.3-4
[25] pbivnorm_0.6.0 loo_2.4.1 munsell_0.5.0 compiler_4.1.2
[29] rstan_2.21.3 pkgconfig_2.0.3 mnormt_2.0.2 pkgbuild_1.3.1
[33] tmvnsim_1.0-2 rstantools_2.1.1 globals_0.14.0 mcmc_0.9-7
[37] tidyselect_1.1.2 tibble_3.1.6 gridExtra_2.3 matrixStats_0.61.0
[41] codetools_0.2-18 fansi_1.0.2 future_1.24.0 crayon_1.5.0
[45] dplyr_1.0.8 MASS_7.3-54 grid_4.1.2 DBI_1.1.2
[49] gtable_0.3.0 lifecycle_1.0.1 magrittr_2.0.2 StanHeaders_2.21.0-7
[53] scales_1.1.1 RcppParallel_5.1.5 future.apply_1.8.1 cli_3.2.0
[57] ellipsis_0.3.2 vctrs_0.3.8 generics_0.1.2 sandwich_3.0-1
[61] tools_4.1.2 CompQuadForm_1.4.3 glue_1.6.1 purrr_0.3.4
[65] processx_3.5.2 parallel_4.1.2 inline_0.3.19 colorspace_2.0-3
[69] bayesplot_1.8.1 quantreg_5.88 MCMCpack_1.6-0
I think that your lavaan version is too old. I think you either need the CRAN version of lavaan, or the newest version of lavaan on github.
Yes, it worked when I updated to the lavaan github version