Giter VIP home page Giter VIP logo

lavaan.survey.fiml's Introduction

lavaan.survey.fiml

Complex survey standard errors for Structural Equation Models in R

This is an experimental package, whose functionality will eventually be merged into lavaan.survey. Currently it estimates standard errors for Structural Equation Models (SEM) estimated using lavaan in R, accounting for clustering and stratification. It also allows for models with missing data estimated using FIML, where lavaan.survey requires multiple imputation to deal with missing data.

It does not (yet) account for weights, so there is no point estimation in this package (see lavaan.survey for that).

lavaan.survey.fiml's People

Contributors

daob avatar

Stargazers

 avatar

Watchers

 avatar

lavaan.survey.fiml's Issues

Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds

Dear Daniel,

Im trying to estimate a model using your R package since I want to use FIML.
When I´m trying to estimate my model I get the error: Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'rowSums': subscript out of bounds

I tried to run your example code to see what might be the problem and encountered the same problem when executing: sqrt(diag(vcov_complex(lavaan.fit, ids = ess.dk$intnum))).

The rest of the example code works fine.

I attached the session info with the loaded packages if necessary, although i checked if i have outdated packages (which i do not).

Do you know what could be the issue?
Best regards from Germany,
Matthias


Loaded via a namespace (and not attached):
[1] backports_1.4.1 Hmisc_4.7-0 plyr_1.8.7 igraph_1.3.0 splines_4.0.2 usethis_2.1.5 ggplot2_3.3.6
[8] TH.data_1.1-1 digest_0.6.27 htmltools_0.5.2 fansi_1.0.3 magrittr_2.0.3 checkmate_2.0.0 memoise_2.0.1
[15] lisrelToR_0.1.4 cluster_2.1.3 tzdb_0.3.0 openxlsx_4.2.5 remotes_2.4.2 RcppParallel_5.1.4 vroom_1.5.7
[22] sandwich_3.0-1 prettyunits_1.1.1 jpeg_0.1-9 sem_3.1-15 colorspace_2.0-3 mitools_2.4 xfun_0.30
[29] dplyr_1.0.8 callr_3.7.0 crayon_1.5.1 jsonlite_1.8.0 lme4_1.1-29 zoo_1.8-10 glue_1.6.2
[36] gtable_0.3.0 emmeans_1.7.3 mi_1.0 pkgbuild_1.3.1 abind_1.4-5 scales_1.2.0 mvtnorm_1.1-3
[43] DBI_1.1.2 Rcpp_1.0.7 xtable_1.8-4 htmlTable_2.4.0 tmvnsim_1.0-2 bit_4.0.4 foreign_0.8-82
[50] Formula_1.2-4 stats4_4.0.2 htmlwidgets_1.5.4 httr_1.4.3 RColorBrewer_1.1-3 ellipsis_0.3.2 pkgconfig_2.0.3
[57] XML_3.99-0.9 nnet_7.3-17 kutils_1.70 utf8_1.2.2 tidyselect_1.1.2 rlang_1.0.2 reshape2_1.4.4
[64] munsell_0.5.0 tools_4.0.2 cachem_1.0.6 cli_3.2.0 generics_0.1.2 devtools_2.4.3 fdrtool_1.2.17
[71] stringr_1.4.0 fastmap_1.1.0 arm_1.12-2 processx_3.5.3 knitr_1.39 bit64_4.0.5 fs_1.5.2
[78] zip_2.2.0 purrr_0.3.4 glasso_1.11 pbapply_1.5-0 nlme_3.1-157 brio_1.1.3 compiler_4.0.2
[85] rstudioapi_0.13 curl_4.3.2 png_0.1-7 testthat_3.1.3 tibble_3.1.6 pbivnorm_0.6.0 stringi_1.7.6
[92] ps_1.6.0 qgraph_1.9.2 rockchalk_1.8.151 desc_1.4.1 lattice_0.20-41 psych_2.2.3 nloptr_2.0.0
[99] vctrs_0.4.1 pillar_1.7.0 lifecycle_1.0.1 OpenMx_2.19.8 estimability_1.3 data.table_1.14.2 corpcor_1.6.10
[106] R6_2.5.1 latticeExtra_0.6-29 gridExtra_2.3 sessioninfo_1.2.2 codetools_0.2-18 boot_1.3-28 MASS_7.3-54
[113] gtools_3.9.2 assertthat_0.2.1 pkgload_1.2.4 rprojroot_2.0.3 withr_2.5.0 mnormt_2.0.2 multcomp_1.4-19
[120] parallel_4.0.2 hms_1.1.1 rpart_4.1.16 coda_0.19-4 minqa_1.2.4 carData_3.0-5 base64enc_0.1-3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.