MyNixOS website logo
Description
Influential Cases in Structural Equation Modeling
Sensitivity analysis in structural equation modeling using influence measures and diagnostic plots. Support leave-one-out casewise sensitivity analysis presented by Pek and MacCallum (2011) <doi:10.1080/00273171.2011.561068> and approximate casewise influence using scores and casewise likelihood.

Lifecycle: stable Project Status: Active - The project has reached a stable, usable state and is being actively developed. CRAN status CRAN: Release Date CRAN RStudio mirror downloads Code size Last Commit at Master R-CMD-check

(Version 0.1.8, updated on 2024-04-08, release history)

semfindr: Finding influential cases in SEM

A find(e)r of influential cases in structural equation modeling based mainly on the sensitivity analysis procedures presented by Pek and MacCallum (2011).

This package supports two approaches: leave-one-out analysis and approximate case influence.

Leave-One-Out Analysis

This approach examines the influence of each case by refitting a model with this case removed.

Unlike other similar packages, the workflow adopted in semfindr separates the leave-one-out analysis (refitting a model with one case removed) from the case influence measures.

  • Users first do the leave-one-out model fitting for all cases, or cases selected based on some criteria (vignette("selecting_cases", package = "semfindr")), using lavaan_rerun().

  • Users then compute case influence measures using the output of lavaan_rerun().

This approaches avoids unnecessarily refitting the models for each set of influence measures, and also allows analyzing only probable influential cases when the model takes a long time to fit.

The functions were designed to be flexible such that users can compute case influence measures such as

  • standardized parameter estimates and generalized Cook's distance for selected parameters;
  • changes in raw or standardized estimates of parameters;
  • changes in fit measures supported by lavaan::fitMeasures().

This package can also be generate plots to visualize case influence, including a bubble plot similar to that by car::influencePlot() All plots generated are ggplot plots that can be further modified by users. More can be found in Quick Start (vignette("semfindr", package = "semfindr")).

Approximate Case Influence

This approach computes the approximate influence of each case using casewisescores and casewiselikelihood. This method is efficient because it does not requires refitting the model for each case. However, it can only approximate the influence, unlike the leave-one-out approach, which produce exact influence. This approach can be used when the number of cases is very large and/or the model takes a long time to fit. Technical details can be found in the vignette Approximate Case Influence Using Scores and Casewise Likelihood (vignette("casewise_scores", package = "semfindr")).

Installation

The stable version at CRAN can be installed by install.packages():

install.packages("semfindr")

The latest developmental version can be installed by remotes::install_github:

remotes::install_github("sfcheung/semfindr")

You can learn more about this package at the Github page of this package and Quick Start (vignette("semfindr", package = "semfindr")).

Reference

Pek, J., & MacCallum, R. (2011). Sensitivity analysis in structural equation models: Cases and their influence. Multivariate Behavioral Research, 46(2), 202-228. https://doi.org/10.1080/00273171.2011.561068

Comments, Suggestions, and Bug Reports

Please post your comments, suggestions, and bug reports as issues at GitHub, or contact the maintainer by email. Thanks in advance for trying out semfindr.

Metadata

Version

0.1.8

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows