GGIR(
datadir="C:/~/GGIR processing data",
outputdir= "C:/~/GGIR results",
mode=c(1,2,3,4,5),
studyname = "ADPRF",
desiredtz = "Australia/Melbourne",
overwrite = TRUE,
idloc=7,
storefolderstructure=TRUE,
print.filename= TRUE,
# Part 1 – Raw data processing/data quality/extracts features/nonwear detection
windowsizes = c(5, 900, 3600),
do.cal = TRUE,
do.enmo = TRUE,
acc.metric = "ENMO",
do.enmoa = FALSE, #default is false
do.anglex = FALSE, #default is false
do.angley = FALSE, #default is false
do.anglez = TRUE, #default is true
do.neishabouricounts = TRUE,
part5_agg2_60sec = FALSE,
printsummary=FALSE,
# Part 2 – data quality and descriptives
strategy = 1,
maxdur = 0,
max_calendar_days = 0,
hrs.del.start = 0, #only needed for strategy 1
hrs.del.end = 0, #only needed for strategy 1
WornDuringSleep =FALSE,
part2ImpWithZero = TRUE,
part2ExcludeNonwear = TRUE,
includedaycrit = 8,
includedaycrit.part5 = 1,
do.imp=TRUE,
qlevels = c(
960/1440, #most active 2/3rds of the day
(24 - 2) / 24, # M120
(24 - 1) / 24, # M60
1410/1440, #most active 30 min of the day
1425/1440, #most active 15 min of the day
1435/1440), #most active 5 min of the day
ilevels = c(0, 50, 100, 150, 200, 250, 300, 350, 700, 8000),
iglevels = 1,
mvpathreshold = c(63.3, 142.6, 464.6),
mvpadur = c(1, 5, 10),
boutcriter = 1.0,
qwindow = c(0, 24),
# Parts 3 & 4 – sleep - NOT APPLICABLE
# Part 5 – full-day time-use analysis
threshold.lig = 63.3, threshold.mod = 142.6, threshold.vig = 464.6,
boutdur.in = c(1, 5, 10), boutdur.lig = c(1, 5, 10), boutdur.mvpa = c(1, 5, 10),
boutcriter.in = 1.0, boutcriter.lig = 1.0, boutcriter.mvpa = 1.0,
frag.metrics="all",
timewindow = c("MM","WW"),
do.report = c(2, 4, 5),
visualreport = TRUE,
dofirstpage=TRUE,
epochvalues2csv=TRUE,
viewingwindow=1
)