Package: imputeCGM 0.0.3

Shubh Saraswat

imputeCGM: Impute Missing Glucose Values in CGM Data

Imputes missing glucose values in repeated-measures continuous glucose monitoring (CGM) data. Workflows create time-series features from raw timestamps, support model selection, and return the user's original columns plus an imputed glucose column. Methods include multiple imputation by chained equations using 'mice' (Azur et al. (2011) <doi:10.1002/mpr.329>), Random Forest regression using 'ranger' (Breiman (2001) <doi:10.1023/A:1010933404324>), k-nearest-neighbor regression using 'FNN' (Zhang (2016) <doi:10.21037/atm.2016.03.37>), 'XGBoost' using 'xgboost' (Chen and Guestrin (2016) <doi:10.1145/2939672.2939785>), 'LightGBM' using 'lightgbm' (Ke et al. (2017) <https://papers.nips.cc/paper/6907-lightgbm-a-highly-efficient-gradient-boosting-decision>), and ARIMA forecasting using 'forecast' (Hyndman and Khandakar (2008) <doi:10.18637/jss.v027.i03>). A 'Python'-compatible backend uses 'reticulate' to call 'pandas', 'scikit-learn', 'statsmodels', 'xgboost', and optional 'lightgbm'.

Authors:Shubh Saraswat [cre, aut, cph], Hasin Shahed Shad [aut], Xiaohua Douglas Zhang [aut]

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

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

Bug tracker:https://github.com/zhanglabuky/imputecgmr/issues

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

Datasets:

On CRAN:

Conda:

5.08 score 5 scripts 3 exports 112 dependencies

Last updated from:6617d693e5. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK204
source / vignettesOK234
linux-release-x86_64OK244
macos-release-arm64OK139
macos-oldrel-arm64OK94
windows-develOK122
windows-releaseOK114
windows-oldrelOK117
wasm-releaseOK146

Exports:run_apprun_missing_glucose_imputationrun_missingness_benchmark

Dependencies:backportsbase64encbitbit64bootbroombslibcachemCGManalyzerclicliprcodetoolscolorspacecommonmarkcpp11crayondata.tabledigestdplyrfarverfastmapFNNfontawesomeforcatsforeachforecastfracdifffsgenericsggplot2glmnetgluegtablehavenherehmshtmltoolshttpuvisobanditeratorsjomojquerylibjsonlitelabelinglaterlatticelifecyclelightgbmlme4lmtestmagrittrMASSMatrixmemoisemicemimeminqamitmlnlmenloptrnnetnumDerivordinalotelpanpillarpkgconfigpngprettyunitsprogresspromisespurrrR6rangerrappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppTOMLRdpackreadrreformulasreticulaterlangrpartrprojrootS7sassscalesshapeshinysourcetoolsstringistringrsurvivaltibbletidyrtidyselecttimeDatetzdbucminfurcautf8vctrsviridisLitevroomwithrxgboostxtablezoo

How To Use imputeCGM
Overview | Installation | Example data | Required input columns | What counts as missing? | Explicit missing glucose values | Timestamp gaps | Basic real-imputation workflow | How the method is selected | Thread control | Time handling and timestamp regularization | Internal engineered features | Continuous imputed values | Optional Python-compatible backend | Installing optional Python dependencies | Choosing a backend | Exporting results | Troubleshooting | Timestamp parsing errors | Unexpected row counts | Python module errors | Warnings from mice | Session information

Last update: 2026-07-13
Started: 2026-06-28

Using the imputeCGM Shiny App
Overview | Installation | Launching the app | Input options | Upload a CSV file | Load built-in example data | Selecting columns | Target glucose column | Subject ID column | Timestamp column | Feature columns | Missingness summary card | Timestamp-gap handling | Backend selection | MICE backend | Method selection | Optional sklearn backend | Running imputation | Previewing results | Downloading results | Troubleshooting | The app does not launch | No column choices appear | Imputation fails because a timestamp cannot be parsed | Downloaded data have more rows than the uploaded file | Python backend fails because a Python module is missing | Downloaded data contain NA in the original glucose column | Developer notes

Last update: 2026-07-08
Started: 2026-06-28