We calculated the sleep duration of weekday sleep and weekend sleep and when compared to the databases calculations, the weekday sleep duration (DAYSLP_dur_hr) was the same but the weekend sleep duration (END_dur_hr) was slightly off. I was looking through the SAS code you sent (I'm not very familiar with this system) and the only inconsistency that I thought that might have affected your calculation was that ENDSLP_time below should read ENDBED_time. Thoughts? I can pass along our syntax if that would be helpful.
This is extremely helpful, thank you for posting this syntax! Quick questions - you mentioned that a manual correction was made to the weekend sleep duration, what was the manual correction for?
I calculated sleep duration using the bedtime and waketime provided but my calculations are different than the sleep duration calculated in the dataset. Do you know how "DAYSLP_dur_hr" was calculated?
Thank you for your response! Yes, I am asking about the Cleveland Family Study. Another question, I see that there are computed midsleep times for weekends and weekdays in the dataset. Do these calculations take into account sleep duration from the previous week?
I am curious if the dataset contains two variables: family healthy history and school start time of the child/adolescent.