adrr: Calculate average daily risk range (ADRR)

View source: R/adrr.R

adrrR Documentation

Calculate average daily risk range (ADRR)

Description

The function adrr produces ADRR values in a tibble object.

Usage

adrr(data)

Arguments

data

DataFrame object with column names "id", "time", and "gl".

Details

A tibble object with 1 row for each subject, a column for subject id and a column for ADRR values is returned. NA glucose values are omitted from the calculation of the ADRR values.

ADRR is the average sum of HBGI corresponding to the highest glucose value and LBGI corresponding to the lowest glucose value for each day, with the average taken over the daily sums. If there are no high glucose or no low glucose values, then 0 will be substituted for the HBGI value or the LBGI value, respectively, for that day.

Value

A tibble object with two columns: subject id and corresponding ADRR value.

References

Kovatchev et al. (2006) Evaluation of a New Measure of Blood Glucose Variability in, Diabetes Diabetes care 29 .2433-2438, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2337/dc06-1085")}.

Examples


data(example_data_1_subject)
adrr(example_data_1_subject)

data(example_data_5_subject)
adrr(example_data_5_subject)


irinagain/iglu documentation built on April 15, 2024, 4:20 p.m.