Package: semfindr 0.2.0.2

semfindr: 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. An introduction to the package can be found in Cheung and Lai (2026) <doi:10.1080/00273171.2026.2634293>.

Authors:Shu Fai Cheung [aut, cre], Mark Hok Chio Lai [aut]

semfindr_0.2.0.2.tar.gz
semfindr_0.2.0.2.zip(r-4.7)semfindr_0.2.0.2.zip(r-4.6)semfindr_0.2.0.2.zip(r-4.5)
semfindr_0.2.0.2.tgz(r-4.6-any)semfindr_0.2.0.2.tgz(r-4.5-any)
semfindr_0.2.0.2.tar.gz(r-4.7-any)semfindr_0.2.0.2.tar.gz(r-4.6-any)
semfindr_0.2.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
semfindr/json (API)

# Install 'semfindr' in R:
install.packages('semfindr', repos = c('https://sfcheung.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sfcheung/semfindr/issues

Pkgdown/docs site:https://sfcheung.github.io

Datasets:
  • cfa_dat - Sample Data: A CFA Model
  • cfa_dat_heywood - Sample Data: A CFA Model with a Heywood Case
  • cfa_dat_mg - Sample Data: A Multiple-Group CFA Model with an Influential Case
  • cfa_dat2 - Sample Data: A CFA Model with an Influential Case
  • pa_dat - Sample Data: A Path Model
  • pa_dat2 - Sample Data: A Path Model with an Influential Case
  • sem_dat - Sample Data: A Latent Variable Structural Model
  • sem_dat2 - Sample Data: A Latent Variable Structural Model With an Influential Case

On CRAN:

Conda:

diagnosticsinfluential-caseslavaanoutlier-detectionsensitivity-analysisstructural-equation-modeling

6.01 score 1 stars 1 packages 86 scripts 601 downloads 23 exports 28 dependencies

Last updated from:768b5abb05. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK237
source / vignettesOK261
linux-release-x86_64OK241
macos-release-arm64OK138
macos-oldrel-arm64OK172
windows-develOK336
windows-releaseOK257
windows-oldrelOK204
wasm-releaseOK106

Exports:approx_checkest_changeest_change_approxest_change_gcd_plotest_change_plotest_change_rawest_change_raw_approxfit_measures_changefit_measures_change_approxgcd_gof_md_plotgcd_gof_plotgcd_plotimplied_scoresindex_plotinfluence_statlavaan_rerunlavaan_rerun_checkmahalanobis_predictorsmahalanobis_rerunmd_plotpars_idpars_id_to_lorguser_change_raw

Dependencies:clicpp11farverggplot2ggrepelgluegtableisobandlabelinglatticelavaanlifecycleMASSMatrixmnormtnumDerivpbapplypbivnormquadprogR6RColorBrewerRcpprlangS7scalesvctrsviridisLitewithr

Approximate Case Influence Using Scores and Casewise Likelihood
Using Scores to Approximate Case Influence | Comparison | Generalized Cook's distance (gCD) | Approximate Change in Fit | Comparing exact and approximate changes in fit indices | Limitations | References

Last update: 2026-03-06
Started: 2022-09-02

Quick Start
Purpose | Leave-One-Out Approach | Workflow | Fitting the Target Model | Rerun n Times (Step 1 to Step 3) | Diagnostic Functions | Standardized Changes in Parameter Estimates (DFTHETAS) | Raw Change in Parameter Estimates (DFTHETA) | Mahalanobis Distance | Changes in Fit Measures | An All-In-One-Function | Diagnostic Plots | Generalized Cook's Distance | Change in Fit Measure vs. Generalized Cook's Distance | Bubble Plot | Index Plot of Standardized Changes (DFTHETASs) or Raw Changes (DFTHETAs) in Parameter Estimates | Standardized Changes Against gCD | Approximate Approach | Approximate Standardized Changes in Parameter Estimates | Approximate Raw Changes in Parameter Estimates | Approximate Changes in Fit Measures | Approximate Generalized Cook's Distance | Approximate Change in Fit Measure vs. Approximate Generalized Cook's Distance | Index Plot of Standardized or Raw Changes in Parameter Estimates | Final Remarks | References

Last update: 2026-03-06
Started: 2021-09-02

Selecting Cases In lavaan_rerun
Row Numbers or Case IDs | Mahalanobis Distance on Residuals | Mahalanobis Distance on All Variables | Final Remarks | References

Last update: 2026-03-06
Started: 2021-09-26

Use Case IDs
Rerun n Times | Diagnostic Functions | Standardized Changes in Estimates | Raw Changes in Estimates | Mahalanobis Distance | Changes in Fit Measures | All-In-One-Function | Diagnostic Plots | Generalized Cook's Distance | Fit Measure vs. Generalized Cook's Distance | Bubble Plot | References

Last update: 2026-03-06
Started: 2021-09-26

Readme and manuals

Help Manual

Help pageTopics
Compatibility Check for the '_approx' Functionsapprox_check
Sample Data: A CFA Modelcfa_dat
Sample Data: A CFA Model with a Heywood Casecfa_dat_heywood
Sample Data: A Multiple-Group CFA Model with an Influential Casecfa_dat_mg
Sample Data: A CFA Model with an Influential Casecfa_dat2
Standardized Case Influence on Parameter Estimates (DFTHETAS)est_change
Standardized Case Influence on Parameter Estimates (Approximate DFTHETAS)est_change_approx
Plots of Case Influence on Parameter Estimatesest_change_gcd_plot est_change_plot
Case Influence on Parameter Estimates (DFTHETA)est_change_raw
Case Influence on Parameter Estimates (Approximate DFTHETA)est_change_raw_approx
Case Influence on Fit Measuresfit_measures_change
Case Influence on Fit Measures (Approximate)fit_measures_change_approx
Implied Scores of Observed Outcome Variablesimplied_scores
Index Plot of an Arbitrary Statisticindex_plot
Plots of Influence Measuresgcd_gof_md_plot gcd_gof_plot gcd_plot influence_plot md_plot
Case Influence Measuresinfluence_stat
Rerun a 'lavaan' Analysis Using the Leaving-One-Out Approachlavaan_rerun
Compatibility Check for 'lavaan_rerun'lavaan_rerun_check
Mahalanobis Distance On Observed Predictorsmahalanobis_predictors
Mahalanobis Distance on All Observed Variablesmahalanobis_rerun
Sample Data: A Path Modelpa_dat
Sample Data: A Path Model with an Influential Casepa_dat2
Convert Parameter Syntax to Position or Row Numbers in the Parameter Vector or Tablepars_id
Ids to "lhs-op-rhs-(group)"pars_id_to_lorg
Print an 'est_change' Class Objectprint.est_change
Print a 'fit_measures_change' Class Objectprint.fit_measures_change
Print an 'influence_stat' Class Objectprint.influence_stat
Print Method for 'lavaan_rerun'print.lavaan_rerun
Print a 'md_semfindr' Class Objectprint.md_semfindr
Sample Data: A Latent Variable Structural Modelsem_dat
Sample Data: A Latent Variable Structural Model With an Influential Casesem_dat2
Case Influence on User-Defined Statisticsuser_change_raw