aucgvp: area under curve

View source: R/aucgvp.R

aucgvpR Documentation

area under curve

Description

Area under curve is an average measure of glycemia that quantifies the average exposure to hypoglycemia and hyperglycemia events. The integral trapezoidal cumulative function is used to calculate the area. The area under a curve between two points can be found by doing a definite integral between the two points. To find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

Usage

aucgvp(x, t = 24, tdown = 70, tup = 180)

Arguments

x

Data-set with data frame format containing three columns:

date: date of the observation with format yyyy/mm/dd.

time: time of the observation with 24 hour format hh:mm:ss.

glucose: glucose value of the observation in [mg/dl].

t

Numeric value with interval for calculate measure. Permitted values are 4, 6, 8, 12 and 24 hours. Default value of 24 hours.

tdown

Numeric value with target range low. Default value of 70 [mg/dl].

tup

Numeric value with target range high. Default value of 180 [mg/dl].

Value

A data frame containing the lauc, hauc and auc values.

Author(s)

Sergio Contador.

References

Jean-Pierre Le Floch, Philippe Escuyer, Eric Baudin, Dominique Baudon, and Leon Perlemuter. Blood glucose area under the curve: Methodological aspects. Diabetes Care, 13(2):172–175, 1990.

Examples

data("datagvp1")
aucgvp(datagvp1)

gluvarpro documentation built on Oct. 1, 2022, 5:05 p.m.

Related to aucgvp in gluvarpro...