Skip to content

phantSEM

Create Phantom Variables in Structural Equation Models for Sensitivity Analyses

v1.0.1 · Jan 13, 2026 · MIT + file LICENSE

Description

Create phantom variables, which are variables that were not observed, for the purpose of sensitivity analyses for structural equation models. The package makes it easier for a user to test different combinations of covariances between the phantom variable(s) and observed variables. The package may be used to assess a model's or effect's sensitivity to temporal bias (e.g., if cross-sectional data were collected) or confounding bias.

Downloads

CRAN

471

Last 30 days

8212th

1.5K

Last 90 days

4K

Last year

Trend: -8.4% (30d vs prior 30d)

r2u CRAN

9

Last 30 days

43

Last 90 days

175

Last year

Trend: -72.7% (30d vs prior 30d)

autoCRAN

2

Last 7 days

11

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘my-vignette.Rmd’ using rmarkdown
Warning in file("", "w+b") :
  cannot open file '/tmp/RtmpB11bcm/Rf31ceb7566918ad': No space left on device

Quitting from my-vignette.Rmd:28-34 [setup]
~~~~~~
...[truncated]...
ocessing vignette 'my-vignette.Rmd' failed with diagnostics:
cannot open the connection
--- failed re-building ‘my-vignette.Rmd’

SUMMARY: processing the following file failed:
  ‘my-vignette.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies tidyr dplyr corpcor lavaan phantSEM

Version History

3 tracked
new 1.0.1 Mar 10, 2026
updated 1.0.1 ← 1.0.0.0 diff Jan 12, 2026
new 1.0.0.0 Sep 6, 2023