according to the info provided in the "Variables" tab of the MESA dataset (https://sleepdata.org/datasets/mesa/variables/wrksched5?v=0.4.0), the variable "wrksched5" represents the description of the participant's work schedule.
The associated dictionary is;
1: Day shift
2: Afternoon shift
3: Night shift
4: Split shift
5: Irregular shift / on-call
5: Rotating shifts
5: Do not work
However, in the data file itself, I see the following values (and proportions in the MESA dataset):
I do think there is a small error in the dictionary. Given the age distribution of the participants, I would expect that the majority is retired (index = 7, although I might be biased as I do work in Western Europe).
Thus, I think the last two values of the published dictionary should be corrected to:
6: Rotating shifts
7: Do not work
But I might also be mistaken.
Thank you in advance for your help.
Thanks - you are correct about this being an error in the data dictionary. We have it slated for fixing in the next release (https://github.com/nsrr/mesa-data-dictionary/issues/21).
You are correct about 6: Rotating shifts and 7: Do not work.
We appreciate your diligence in exploring the data. We hope you have found the site useful!
Thank you for the prompt reply. I did not know about the github repository. Could be very useful to log and document the inherent bugs and improvements.
And thank you again for making all these info available to us all.
This is fixed in the latest release (v0.5.0) - thanks again for posting about the issue here!