Package: smdi 0.3.3

Janick Weberpals

smdi: Perform Structural Missing Data Investigations

An easy to use implementation of routine structural missing data diagnostics with functions to visualize the proportions of missing observations, investigate missing data patterns and conduct various empirical missing data diagnostic tests. Reference: Weberpals J, Raman SR, Shaw PA, Lee H, Hammill BG, Toh S, Connolly JG, Dandreo KJ, Tian F, Liu W, Li J, Hernández-Muñoz JJ, Glynn RJ, Desai RJ. smdi: an R package to perform structural missing data investigations on partially observed confounders in real-world evidence studies. JAMIA Open. 2024 Jan 31;7(1):ooae008. <doi:10.1093/jamiaopen/ooae008>.

Authors:Janick Weberpals [aut, cre, cph]

smdi_0.3.3.tar.gz
smdi_0.3.3.zip(r-4.7-any)smdi_0.3.3.zip(r-4.6-any)smdi_0.3.3.zip(r-4.5-any)
smdi_0.3.3.tgz(r-4.6-any)smdi_0.3.3.tgz(r-4.5-any)
smdi_0.3.3.tar.gz(r-4.7-any)smdi_0.3.3.tar.gz(r-4.6-any)
smdi_0.3.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
smdi/json (API)

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

Bug tracker:https://github.com/janickweberpals/smdi/issues

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

Datasets:

On CRAN:

Conda:

missing-datareal-world-data

5.50 score 42 scripts 500 downloads 13 exports 154 dependencies

Last updated from:2c7ba74cff. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK292
source / vignettesOK418
linux-releaseOK251
macos-releaseOK413
macos-oldrelOK343
windows-develOK234
windows-releaseOK234
windows-oldrelOK229
wasm-releaseOK153

Exports:gg_miss_upsetmd.patternsmdi_asmdsmdi_check_covarsmdi_diagnosesmdi_hotellingsmdi_littlesmdi_na_indicatorsmdi_outcomesmdi_rfsmdi_style_gtsmdi_summarizesmdi_vis

Dependencies:backportsbase64encbigDbitbit64bitopsbootbroombslibcachemcaretclassclicliprclockcodetoolscommonmarkcorpcorcpp11crayoncurldata.tableDBIdiagramdigestdplyre1071evaluatefarverfastDummiesfastmapfontawesomeforcatsforeachfsfuturefuture.applygdatagenericsggplot2glmnetglobalsgluegmodelsgowergridExtragtgtablegtoolshardhathavenhighrhmsHotellinghtmltoolshtmlwidgetsipredisobanditeratorsjomojquerylibjsonlitejuicyjuiceKernSmoothknitrlabelinglabelledlatticelavalifecyclelistenvlitedownlme4lubridatemagrittrmarkdownMASSMatrixmemoisemicemimeminqamitmlmitoolsnaniarnlmenloptrnnetnormnumDerivordinalpanparallellypillarpkgconfigplyrprettyunitspROCprodlimprogressprogressrproxypurrrR6randomForestrappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreactablereactRreadrrecipesreformulasreshape2rlangrmarkdownrpartS7sassscalesshapesparsevctrsSQUAREMstringistringrsurveysurvivaltableonetibbletidyrtidyselecttimechangetimeDatetinytextzdbucminfUpSetRutf8V8vctrsviridisviridisLitevisdatvroomwithrxfunxml2yamlyardstickzoo

Multivariate missingness and monotonicity
Multivariate missing data in smdi | Established taxonomies | How does smdi handle multivariate missingness? | Lab 1 analyzed without Lab 2 | Lab 2 analyzed without Lab 1 | Presented in one table using smdi_style_gt()

Last update: 2026-11-21
Started: 2023-07-17

NARFCS sensitivity analysis
Sensitivity analysis for MNAR(value) | Illustrative example | Visual comparison | smdi diagnostics | Comparing treatment effect estimates | NARFCS imputation | Tipping point analysis | Multivariate missingness PD-L1 biomarker example | More on sensitivity analyses | References

Last update: 2026-11-21
Started: 2023-07-17

Routine structural missing data diagnostics
smdi main functionalities | Descriptives | Missingness proportions | Missingness patterns | Upset plot | Pattern matrix | Before we are getting started: data format | Group 1 diagnostics: differences in covariate distributions | Median/average absolute standardized mean differences | Hotelling's and Little's hypothesis tests | Hotteling | Little | Group 2 diagnostics: ability to predict missingness | Group 3 diagnostics: association between missingness and outcome | smdi_diagnose() - one function to rule them all | Publication-ready gt-style table | smdi table export | References

Last update: 2026-11-21
Started: 2023-07-17

Data generation
smdi dataset background | Exposure and outcome | Confounders | Missingness | Overview covariates/confounder structure | Simulation of covariates and exposure | Simulate time-to-event | Kaplan-Meier estimates | Cox proportional hazards | Export smdi_data_complete | Introduce missingness | Missing complete at random | Missing at random | Missing not at random - value | Assemble final dataset | Export smdi_data

Last update: 2024-10-06
Started: 2023-07-17

Get started with smdi
smdi_diagnose() - the flagship function

Last update: 2023-05-08
Started: 2023-03-08