Hi all,
I have issues processing accelerometer data for a participant using the Day Segment Analysis approach in GGIR (v3.0-5).
The data was collected using GENEActiv wrist-worn accelerometers (100Hz) under natural conditions, where participants recorded their location and corresponding time per day. The purpose of using the Day Segment Analysis approach was to include only days of interest. This is the shell code:
GGIR(
#======================
#GENERAL PARAMS
#======================
mode = mode,
datadir = datadir,
outputdir = outputdir,
f0 = f0,
f1 = f1,
overwrite = TRUE,
do.imp = TRUE,
idloc = 2,
print.filename = TRUE,
storefolderstructure = FALSE,
#======================
# PART 1
#======================
windowsizes = c(5, 900, 3600),
do.cal = TRUE,
do.enmo = TRUE,
do.anglex = TRUE,
chunksize = 0.5,
printsummary = TRUE,
#=====================
#PART 2
#=====================
data_masking_strategy = 1,
hrs.del.start = 0,
hrs.del.end = 0,
maxdur = 0,
includedaycrit = 16,
M5L5res = 10,
winhr = 5,
qlevels = NULL,
qwindow = qwindow, #file
directory to the activity diary in .csv format
qwindow_dateformat = qwindow_dateformat,
desiredtz = "Australia/Brisbane",
ilevels = NULL,
mvpathreshold = 100.6,
#=====================
#PART 3
#=====================
timethreshold = 10,
anglethreshold = 5,
ignorenonwear = FALSE,
#====================
#PART 4
#====================
includenightcrit = 16,
def.noc.sleep = 1,
loglocation = NULL,
outliers.only = FALSE,
criterror = 0,
relyonguider = FALSE,
do.visual = TRUE,
#===================
#PART 5
#===================
threshold.lig = 45.8,
threshold.mod = 93.2,
threshold.vig = 418.3,
excludefirstlast = FALSE,
boutcriter = 0.8,
boutcriter.in = 0.9,
boutcriter.lig = 0.8,
boutcriter.mvpa = 0.8,
boutdur.in = c(10,20,30),
boutdur.lig = c(1, 5, 10),
boutdur.mvpa = c(1, 5, 10),
timewindow = c("WW"),
#=====================
#REPORT
#=====================
do.report=c(2,5),
visualreport = TRUE,
dofirstpage = TRUE,
viewingwindow = 1
)
The code works because I successfully processed a different participant. The difference between the two are their activities. The participant that I have issues processing the accelerometer data, had additional days of recording that are not of interest, which I excluded in the activity log. An example of their activity log specified via the `qwindow()`function:

However, I receive the following error:

In the output folder, it does not contain any files relating to Part 5. In part2_daysummary.csv, there aren’t metrics computed in the file for the days of interest (highlighted in yellow below), but only the number of hours per segment:

This is the quality plot:


If anyone can point out the issue or need more details please let me know!
Regards,
Kieu

--
You received this message because you are subscribed to the Google Groups "R package GGIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to RpackageGGIR...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/1d823b04-d656-467c-976a-2c56840fdb3an%40googlegroups.com.