Hello Vincent,
This is a helpful response, thank you. That all makes sense, I appreciate the clarification.
If you could, we have a few follow-up questions also related to the sleep_efficiency variable.
- The script computes other variables e.g. WASO, sleep duration, sleep duration in SPT (i.e. the part 4 variables that would be used to calculate sleep efficiency in part 5) but sometimes in part 5 output, there is no sleep_efficiency calculation for certain days, even if the data is complete in the part 4 night summary output. Could you explain why this might be happening?
- Relatedly, we have noticed that in some cases, the number of days with sleep data for these parameters in the part4nightsummary csv differs from the part 5 output, e.g. we get 3 nights of data for part5daysummary but 7 days of data in part 4. In other cases, we sometimes see the opposite -- e.g. we would get 7 days of data in the part 5 output but only 4 days of data in part 4 night summary. Do you know where this discrepancy in number of days of data in parts 4 and 5 comes from?
Any insight you could provide would be greatly appreciated.
Thank you,
Ruth Bieber-Stanley