Skip to content

CGMissingDataR

0.0.2

Impute Missing Glucose Values in CGM Data

0packages depend
1.5Kdownloads / year
31.7%test coverage
13/13checks pass

Overview

About
Maintained by Shubh SaraswatFirst published 2026-02-032 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 3.6 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.13
31.7%
Coverage · measured lines
100%
Documentation · exports
11
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 765 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
75%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

1.5K
CRAN downloads in the past year
Rank #12,675 · ~4/day · ~125/mo
Daily download trend is not available in this view yet.
29930 days
84590 days
1.5K1 year
Compare downloads with other packages →
Also on49 r2u18 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
3Releases
25Commits
1Contributors
License GPL-2.0 · 25 commits · Last activity 2026-07-17

Releases over time

2026-01-29 · 12026-07-17 · 3

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.3
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 3,910 (75%)Vignettes 947 (18%)Rd 373 (7%)
Code characteristics
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

Loading call graph…

Lowest coverage

55 functions
FunctionCycloCoverage
run_app exp30%
run_missingness_benchmark exp310%
.cgmd_add_time_features40%
.cgmd_bind_imputed_model_rows20%
.cgmd_coerce_numeric_strict60%
.cgmd_compute_lag_features30%

People & History

People (3)
Maintainer (1)
Maintainer, Author, Copyright holder
Authors (3)
Maintainer, Author, Copyright holder
Copyright holders (1)
Maintainer, Author, Copyright holder
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.0.2Latest
    2026-05-30 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.0.1
    2026-03-10
  • R
    R 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
Report a problem with this page →