Hi all,
I'm analyzing data for an insomnia treatment study and am trying to calculate the classic parameters: Sleep onset latency (SOL), Wake after sleep onset (WASO), Total sleep time (TST) and Sleep efficiency (SE).
I find this harder than expected with the output files I have from the GGIR package (and my R-expert is unavailable). Perhaps you can help?
The analysis are done using sleep diary data, i.e. guiders.
That is the overall question I have. Specifically I found these things that puzzled me:
I wanted to calculate SOL from the variables sleeponset minus guider_onset in the file part4_nightsummary_sleep_full, but that resulted in negative values since sleeponset can, apparently, start before guide_onset (I thought all sleep variables were calculated within the guider sleep period time when guider was used). I realize it makes sense that people can remember guider_onset wrongly, but how do you handle that for sleep parameter calculations?
A follow-up question is, if sleeponset can start before guider_onset, how is SleepDurationInSpt calculated for those whose sleeponset precedes the guider_onset, is it within or outside the guider sleep period time? This is crucial to know also for WASO-calculations.
Crossing my fingers that someone can help!
Thanks,
Kerstin