Learn R Programming

prepkit: Robust preprocessing for Digital Health

Full Documentation & Tutorials: https://gonrui.github.io/prepkit/

"When Z-Score fails, use M-Score."

prepkit is a comprehensive R package designed for the prepkitocessing of longitudinal behavioral data, with a specific focus on gerontology, digital health, and sensor analytics.

Its flagship feature is the M-Score (Mode-Range Normalization), a novel algorithm designed to detect anomalies in data characterized by "habitual plateaus" (e.g., daily step counts, heart rate), where traditional methods like Z-Score or Min-Max scaling often fail due to skewed distributions and high-frequency routine noise.

Copy Link

Version

Install

install.packages('prepkit')

Version

0.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Rui Gong

Last Published

January 23rd, 2026

Functions in prepkit (0.1.1)

trans_boxcox

Box-Cox Transformation
norm_mode_range

M-Score (Mode-Range Normalization)
sim_gait_data

Simulated Geriatric Gait Data
norm_decimal

Decimal Scaling Normalization
norm_robust

Robust Standardization (Median-MAD)
norm_zscore

Z-Score Standardization
norm_l2

L2 Normalization (Unit Vector)
norm_mean

Mean Normalization
trans_log

Logarithmic Transformation
trans_yeojohnson

Yeo-Johnson Transformation
pp_plot

Visualize Distribution: Before vs After
norm_minmax

Min-Max Normalization