Display Episode Calculation statistics for selected subject
epicalc_profile(
data,
lv1_hypo = 70,
lv2_hypo = 54,
lv1_hyper = 180,
lv2_hyper = 250,
dur_length = 15,
end_length = 15,
subject = NULL,
dt0 = NULL,
inter_gap = 45,
tz = ""
)
A plot displaying (1) the statistics for the episodes and (2) the episodes colored by level.
DataFrame object with column names "id", "time", and "gl". Should only be data for 1 subject. In case multiple subject ids are detected, a warning is produced and only 1st subject is used.
Numeric value specifying a hypoglycemia threshold for level 1
Numeric value specifying a hypoglycemia threshold for level 2
Numeric value specifying a hyperglycemia threshold for level 1
Numeric value specifying a hyperglycemia threshold for level 2
Numeric value specifying the minimum duration in minutes to be considered an episode. Note dur_length should be a multiple of the data recording interval otherwise the function will round up to the nearest multiple. Default is 15 minutes to match consensus.
Numeric value specifying the minimum duration in minutes of improved glycemia for an episode to end. Default is equal to dur_length to match consensus.
String corresponding to subject id
The time frequency for interpolation in minutes, the default will match the CGM meter's frequency (e.g. 5 min for Dexcom).
The maximum allowable gap (in minutes) for interpolation. The values will not be interpolated between the glucose measurements that are more than inter_gap minutes apart. The default value is 45 min.
A character string specifying the time zone to be used. System-specific (see as.POSIXct
), but " " is the current time zone, and "GMT" is UTC (Universal Time, Coordinated). Invalid values are most commonly treated as UTC, on some platforms with a warning.
Johnathan Shih, Jung Hoon Seo, Elizabeth Chun
episode_calculation()
epicalc_profile(example_data_1_subject)
Run the code above in your browser using DataLab