runGLUForFiles: Run GLU for given set of files

Description Usage Arguments

View source: R/runGLUForFiles.R

Description

Run GLU for given set of files

Usage

1
2
3
4
5
6
7
runGLUForFiles(files, indir, outdir = NULL, device = 0,
  daystart = "06:30", nightstart = "23:00",
  dayPeriodStartTime = NULL, firstvalid = FALSE,
  timeformat = "%d/%m/%y %H:%M:%S", imputeApproximal = FALSE,
  imputeOther = FALSE, freq = 5, outlierthreshold = 5,
  hypothreshold = NULL, hyperthreshold = NULL, save = FALSE,
  pregnancy = FALSE, diabetes = FALSE, epochfrequency = 5)

Arguments

files

CGM data files for which variables will be derived.

indir

Path of input directory containing input files.

outdir

Path of output directory where derived data will be stored.

device

Device type: 0 (medtronic ipro2); 1 (Dexcom G2); 2 (Abbott Freestyle Libre), default 0.

daystart

Time of night to day transition in format HH:MM, default 06:30.

nightstart

Time of day to night transition in format HH:MM, default 23:00.

dayPeriodStartTime

Start time of day period, default is nightstart.

timeformat

Time format in the CGM data, default %d/%m/%y %H:%M:%S.

imputeApproximal

Logical. If TRUE then the 'approximal imputation' approach to dealing with missing data is used. If both imputeApproximal and imputeOther are FALSE then the 'complete days' approach is used.

imputeOther

Logical. If TRUE then the 'other day imputation' approach to dealing with missing data is used. If both imputeApproximal and imputeOther are FALSE then the 'complete days' approach is used.

freq

Integer. CGM epoch data frequency (minutes).

outlierthreshold

Numeric. The value k used for outlier detection threshold d=k*SD.

hypothreshold

Numeric. Threshold between hypo- and normo- glycaemia.

hyperthreshold

Numeric. Threshold between normo- and hyper- glycaemia.

save

Logical. If TRUE then derived CGM sequence(s) are stored.

pregnancy

Logical. If TRUE then data is for pregnancy study, so pregnancy specific statistics should be derived.

diabetes

Logical. If TRUE then data is for diabetes study, so pregnancy specific statistics should be derived.


MRCIEU/GLU documentation built on Feb. 1, 2022, 1:02 p.m.