powered by
Calculate time in range (TIR)
tir(x, low = 70, high = 180)
The numeric time in range value for a given dataset of glucose measurements and times.
vector of glucose readings
lower bound of the range. Default is 70
upper bound of the range. Default is 180
tir(x=c(rep(100, 10), rep(120, 10), 105, 85), low=70, high=80)
Run the code above in your browser using DataLab