tir: Calculate time in range (TIR)

View source: R/metrics.R

tirR Documentation

Calculate time in range (TIR)

Description

Calculate time in range (TIR)

Usage

tir(x, low = 70, high = 180)

Arguments

x

vector of glucose readings

low

lower bound of the range. Default is 70

high

upper bound of the range. Default is 180

Value

The numeric time in range value for a given dataset of glucose measurements and times.

Examples

tir(x=c(rep(100, 10), rep(120, 10), 105, 85), low=70, high=80)

rGV documentation built on April 4, 2025, 5:58 a.m.

Related to tir in rGV...