R Under development (unstable) (2025-09-11 r88813 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(SEMsensitivity) > > test_check("SEMsensitivity") This is lavaan 0.6-19 lavaan is FREE software! Please report any bugs. Attaching package: 'dplyr' The following object is masked from 'package:testthat': matches The following objects are masked from 'package:stats': filter, lag The following objects are masked from 'package:base': intersect, setdiff, setequal, union Loading required package: R.oo Loading required package: R.methodsS3 R.methodsS3 v1.8.2 (2022-06-13 22:00:14 UTC) successfully loaded. See ?R.methodsS3 for help. R.oo v1.27.1 (2025-05-02 21:00:05 UTC) successfully loaded. See ?R.oo for help. Attaching package: 'R.oo' The following object is masked from 'package:R.methodsS3': throw The following object is masked from 'package:testthat': equals The following objects are masked from 'package:methods': getClasses, getMethods The following objects are masked from 'package:base': attach, detach, load, save R.utils v2.13.0 (2025-02-24 21:20:02 UTC) successfully loaded. See ?R.utils for help. Attaching package: 'R.utils' The following object is masked from 'package:utils': timestamp The following objects are masked from 'package:base': cat, commandArgs, getOption, isOpen, nullfile, parse, use, warnings Summary of SEM sensitivity analysis result: Method Name: Naive exact method Path: dem65~ind60 Original Value: 0.572336 Original Number of Samples: 75 Drop Points Percentage: 10 Dropped Number of Samples: 8 New Parameter Value: 0.076319 drop points list: [1] 30 38 2 47 36 14 53 26 Summary of SEM sensitivity analysis result: Method Name: Naive method with approximate influence Path: dem65~ind60 Original Value: 0.572336 Original Number of Samples: 75 Drop Points Percentage: 10 Dropped Number of Samples: 8 New Parameter Value: 0.076319 drop points list: [1] 30 38 2 47 36 53 14 26 [1] "The maximum number of data points dropped was 20" [1] "The expected change in parameter value was -0.5828, while the actual change was -0.7415" [1] "The parameter at the biggest change is -0.17, while it was originally 0.57" Summary of Specified Approximation Method: Method Name: specified approximation method Maximum Number of Data Points Dropped: 20 Expected Change in Parameter Value: -0.5828 Actual Change in Parameter Value: -0.7415 Parameter Value at Biggest Change: -0.17 Original Parameter Value: 0.57 It was possible to change the sign of the parameter. Dropped Points: 30, 38, 2, 47, 36, 53, 14, 26, 56, 18, 54, 66, 51, 8, 62, 71, 11, 32, 12, 28 Summary of SEM sensitivity analysis result: Method Name: Simple DEPTH METHOD Path: dem65~ind60 Original Value: 0.572336 Original Number of Samples: 75 Drop Points Percentage: 10 Dropped Number of Samples: 8 New Parameter Value: 0.065405 drop points list: [1] 30 38 47 36 2 53 56 14 [1] "The combined method yields a new parameter value of 0.076319" Summary of SEM sensitivity analysis result: Method Name: Combined Method Path: dem65~ind60 Original Value: 0.572336 Original Number of Samples: 75 Drop Points Percentage: 10 Dropped Number of Samples: 8 New Parameter Value: 0.076319 drop points list: [1] 30 38 2 47 36 14 53 26 The expected CPU time is 42.75 second(s). Could be faster if run in parallel. Summary of Naive Method with Exact Influence: Method Name: naive method with exact influence Original Fit Value: 0.9954 Final Fit Value After Dropping Points: 0.9481 Number of Data Points Dropped: 8 Threshold Crossed: No Threshold Not Crossed. Dropped Points: 74, 68, 41, 47, 12, 7, 71, 45 Fit Measurement Used: cfi Fit Threshold Used: 0.9000 Higher Value Better (for Fit Measurement): Yes Maximum Points Considered for Dropping: 8 Total Number of Data Points: 75 Summary of Finding case deletions required to change fit metric using approximate method: Method Name: Finding case deletions required to change fit metric using approximate method Original Fit Value: 0.9954 Final Fit Value After Dropping Points: 0.9440 Number of Data Points Dropped: 8 Threshold Crossed: No Threshold Not Crossed. Dropped Points: 74, 41, 47, 12, 7, 70, 71, 68 Fit Measurement Used: cfi Fit Threshold Used: 0.9000 Higher Value Better (for Fit Measurement): Yes Maximum Points Considered for Dropping: 8 Total Number of Data Points: 75 [1] "Layer Skipped" [1] "Layer Skipped" [1] "The Negamax method reduced the parameter value from 0.5723 to 0.0588" Summary of Negamax Search Algorithm Results: Method Name: Negamax search algorithm function Path: dem65~ind60 Original Value: 0.572336 Original Number of Samples: 75 Drop Points Percentage: 10 Dropped Number of Samples: 8 drop points list: [1] 30 47 2 38 26 46 36 53 The Negamax method reduced the parameter value from 0.5723 to 0.0588 Summary of Depth Method to Switch Sign of Parameter Results: Method Name: Use depth method to try to switch sign of parameter Path: dem65~ind60 Original Value: 0.572336 Original Number of Samples: 75 Drop Points Percentage: 10 Dropped Number of Samples: 8 New Parameter Value: -0.017758 drop points list: [1] 30 38 47 36 2 53 56 14 22 18 Using the depth method, dropping 10 data points, the parameter was switched from 0.5723 to -0.0178 [1] "The Negamax method reduced the parameter value from 0.5723 to -0.1904" [1] "14 points were dropped" Summary of Depth Method to Switch Sign of Parameter Results: The Negamax method reduced the parameter value from 0.5723 to -0.1904 14 points were dropped Deleted points indices: 30, 38, 47, 36, 53, 28, 26, 14, 71, 25, 46, 48, 22, 2 [ FAIL 0 | WARN 0 | SKIP 1 | PASS 0 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • empty test (1): 'testall.R:15:1' [ FAIL 0 | WARN 0 | SKIP 1 | PASS 0 ] > > proc.time() user system elapsed 428.39 7.25 435.64