
Links Sensor-Detected Hypoglycaemia (SDH) with Person-Reported Hypoglycaemia (PRH) episodes
Source:R/linkingFunctions.R
sdhprhLink.RdCreates a dataset containing SDH episodes (from CGM data) linked with PRH episodes (from uMotif data). There is one row per hypoglycaemic episode. When PRH episodes fall within +/- 1h the SDH interval, they are reported on the same row. To run this function, SDH and PRH datasets must be first built using sdhDetection and umotifprhLink functions.
Arguments
- SdhDataFrame
A dataframe containing all SDH episodes. Output of the sdhDetection function.
- PrhDataFrame
A dataframe containing all PRH episodes reported with a time. Output of the umotifLink function.