Dear Vincent,
I noticed another issue with the sleep data. In the seven-day data, I found that most “part4_nightsummary_sleep_cleaned” miss the first- or last-day of sleep data. Almost all the files missed the first-day data in the three-day data.
Please help me check the code.
Here is the code:
g.shell.GGIR(mode=c(1,2,3,4,5),
datadir=….,
outputdir=….,
studyname = ….,
do.report=c(2,4,5),
#part2#
strategy = 1,
hrs.del.start = 0, hrs.del.end = 0,
maxdur = 9,
#maxdur = 9 for seven-day data; maxdur = 3 for three-day data
includedaycrit = 16,
qwindow=c(0,24),
mvpathreshold =c(100),
bout.metric = 4,
excludefirstlast = FALSE,
includenightcrit = 16,
#part3 and 4#
def.noc.sleep = 1,
outliers.only = TRUE,
criterror = 4,
do.visual = TRUE,
ignorenonwear=T,
#part 5#
threshold.lig = c(30), threshold.mod = c(100), threshold.vig = c(400),
boutcriter = 0.8,
boutcriter.in = 0.9, boutcriter.lig = 0.8,
boutcriter.mvpa = 0.8,
boutdur.in = c(1,10,30), boutdur.lig = c(1,10),
boutdur.mvpa = c(1),
includedaycrit.part5 = 2/3,
#visual report#
timewindow = c("WW"),
visualreport=TRUE)