I am a little confused about why a difference occurs in the number of valid days between the two outputs for part2 and part 5.
In the file named 'part2_summary', the children seemed to provide 6 valid days of wear (4 wkdays and 2 wedays), however when I look at the combined sleep and activity data in 'part5_personsummary...' the number of valid days drops to 2 wddays only. Below is my code, I'm wondering if I have something set incorrectly so it's causing 4 valid days of data to drop out?
I do not necessarily need the visual reports, although they are interesting to look at, but would like to understand why I'm getting this error.
mode=c(2,3,4,5)
datadir= "/gpfs/bb/kellehek/0104"
outputdir= "/gpfs/bb/kellehek/0104"
studyname="CD_0104"
f0=1
f1=c()
g.shell.GGIR(#-------------------------------
# General parameters
#-------------------------------
mode=mode,
datadir=datadir,
outputdir=outputdir,
studyname=studyname,
f0=f0,
f1=f1,
overwrite=TRUE,
do.imp=TRUE,
idloc=1,
print.filename=TRUE,
storefolderstructure=FALSE,
#-------------------------------
# Part 2:
#-------------------------------
strategy = 1,
ndayswindow = 7,
hrs.del.start = 1,
hrs.del.end = 1,
maxdur = 9,
includedaycrit = 10,
qwindow = c(0,24),
ilevels = c(0, 23.5, 359.7, 695.8, 10000),
mvpathreshold = c(359.7),
#-------------------------------
# Part 3:
#-------------------------------
# Key functions: Sleep detection
timethreshold= c(5),
anglethreshold=5,
acc.metric="ENMO",
desiredtz="Europe/London",
ignorenonwear = TRUE,
#-------------------------------
# Part 4:
#-------------------------------
# Key functions: Integrating sleep log (if available) with sleep detection
# storing day and person specific summaries of sleep
do.visual = TRUE,
outliers.only = FALSE,
excludefirstlast = FALSE,
criterror = 8,
includenightcrit = 4,
relyonsleeplog = FALSE,
def.noc.sleep = c(),
#-------------------------------
# Part 5:
# Key functions: Merging physical activity with sleep analyses
#-------------------------------
threshold.lig = c(23.5),
threshold.mod = c(359.7),
threshold.vig = c(695.8),
timewindow = c("WW"),
#-----------------------------------
# Report generation
#-------------------------------
# Key functions: Generating reports based on meta-data
do.report=c(2,4,5),
visualreport = TRUE,
dofirstpage = TRUE,
viewingwindow = 1)