I installed the 2.5-1 version of GGIR as you explained in the blog post. My sleep diary contains both time in bed and the sleeptime, so it captures the time in bed window. Now I used the time in bed in my sleeplog.
I specify sleepwindowType= "TimeInBed" in part 4 of my script (see below); is this the correct way to do this?
# Part 4 parameters:
#-------------------------------
# Key functions: Integrating sleep log (if available) with sleep detection, storing day and person specific summaries of sleep
excludefirstlast = FALSE, # Exclude first and last night for sleep analysis?
includenightcrit = 6, # number of minimum valid hours in a day to attempt sleep analysis
sleepwindowType="TimeInBed",
do.visual = TRUE,
loglocation= "//storage/v/vcl10/ALKG/Data/ALKG/NEONATO/Studies/BOND/Slaaponderzoek/Analyses R BOND/Logfolder/Sleeplog test1.csv",
outliers.only = FALSE,
criterror = 4,
relyonguider = FALSE, #if FALSE the sleep log is only used to guide the acc based detection
sleeplogidnum = FALSE, # Is the participant in the sleep log stored as a number (TRUE) or as a character(FALSE)
colid=1, #colomn in which the participant id or filename is stored
coln1=2, #column number for first day
nnights = 7, #number of nights in the sleep log
#-------------------------------
Attached my part 4 summary sleep full csv file; but I don't have the guider_inbedStart or sleep latency in this file.