imputeCGM: Impute Missing Glucose Values in CGM Data
Authors:
- Shubh SaraswatSSShubh Saraswat
- Hasin Shahed ShadHSHasin Shahed Shad
- Xiaohua Douglas ZhangXZXiaohua Douglas Zhang
- 16 July 2026
- dataset
- Published by The R Foundation
Abstract
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) ), Random Forest regression using 'ranger' (Breiman (2001) ), k-nearest-neighbor regression using 'FNN' (Zhang (2016) ), 'XGBoost' using 'xgboost' (Chen and Guestrin (2016) ), 'LightGBM' using 'lightgbm' (Ke et al. (2017) ), and ARIMA forecasting using 'forecast' (Hyndman and Khandakar (2008) ). A 'Python'-compatible backend uses 'reticulate' to call 'pandas', 'scikit-learn', 'statsmodels', 'xgboost', and optional 'lightgbm'.Keywords
This publication has 5 references indexed in Scilit:
- XGBoost2016
- Introduction to machine learning: k-nearest neighborsAnnals of Translational Medicine, 2016
- Multiple imputation by chained equations: what is it and how does it work?International Journal of Methods in Psychiatric Research, 2011
- Automatic Time Series Forecasting: TheforecastPackage forR2008
- Random ForestsMachine Learning, 2001