Compute first post-wake glucose peak timing variability (fGPTstd)
Source:R/fgptstd.R
compute_fgptstd.RdCalculates the participant-level day-to-day standard deviation of the timing of the first post-wake glucose peak across valid analyzed cycles. Lower values indicate greater temporal regularity; higher values indicate greater day-to-day dispersion.
Arguments
- cycles
A list or data frame of validated
sugaR_cycleobjects (seevalidate_cycle()) for a single participant, each with a detected first post-wake peak time.- min_days
Integer, minimum number of valid days required to compute fGPTstd. Default
7, matching the manuscript's inclusion criterion for CGM data.