CGMissingDataR
0.0.2Impute Missing Glucose Values in CGM Data
Overview
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 (MICE; Azur et al. (2011) doi:10.1002/mpr.329), Random Forest regression (Breiman (2001) doi:10.1023/A:1010933404324), k-nearest-neighbor regression (Zhang (2016) doi:10.21037/atm.2016.03.37), XGBoost (Chen and Guestrin (2016) doi:10.1145/2939672.2939785), LightGBM (Ke et al. (2017) https://papers.nips.cc/paper/6907-lightgbm-a-highly-efficient-gradient-boosting-decision), and ARIMA forecasting with the forecast framework (Hyndman and Khandakar (2008) doi:10.18637/jss.v027.i03). A Python-compatible backend uses 'reticulate' to call 'pandas', 'scikit-learn', 'statsmodels', Python 'xgboost', and optional Python 'lightgbm'.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-05-0213 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-2511 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 75%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Releases over time
Issues over time
Commits over time
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/zhanglabuky/cgmmissingdatar on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 4.0 median / 41 max
- Test cases
- 11 / 0.13 per code line
Test coverage
Line coverage
32%
Expression
37.6%
Tests / Examples
31.7% / 24% ex
Functions
55 3 exported
Complexity
6 avg / 41 max
Call network
55 nodes / 59 edges
Call graph
Open call graph →Lowest coverage
55 functions| Function | Cyclo | Coverage |
|---|---|---|
| run_app exp | 3 | 0% |
| run_missingness_benchmark exp | 31 | 0% |
| .cgmd_add_time_features | 4 | 0% |
| .cgmd_bind_imputed_model_rows | 2 | 0% |
| .cgmd_coerce_numeric_strict | 6 | 0% |
| .cgmd_compute_lag_features | 3 | 0% |
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- 0.0.2Latest
- RR 4.6.0 released · 2026-04-24
- 0.0.12026-03-10
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-02-03
- Total releases
- 2 / 1 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 4.3
- Bundled data
- 7.9 KB / 2 files
- Download size
- 58 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet