gvp: Calculate Glucose Variability Percentage (GVP)

View source: R/gvp.r

gvpR Documentation

Calculate Glucose Variability Percentage (GVP)

Description

The function mad produces GVP values in a tibble object.

Usage

gvp(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 GVP values is returned. NA glucose values are omitted from the calculation of the GVP.

GVP is calculated by dividing the total length of the line of the glucose trace by the length of a perfectly flat trace. The formula for this is sqrt(diff^2+dt0^2)/(n*dt0), where diff is the change in Glucose measurements from one reading to the next, dt0 is the time gap between measurements and n is the number of glucose readings

Value

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

Author(s)

David Buchanan, Mary Martin

References

Peyser et al. (2017) Glycemic Variability Percentage: A Novel Method for Assessing Glycemic Variability from Continuous Glucose Monitor Data. Diabetes Technol Ther 20(1):6–16, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1089/dia.2017.0187")}.

Examples


data(example_data_1_subject)
gvp(example_data_1_subject)

data(example_data_5_subject)
gvp(example_data_5_subject)


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