I want to create a new dummy variable “night shift work” (if the respondents have more than 4h work between 7pm and 7am, then they has night shift work). How should I do that? Could you please give me some suggestions?
Here is the method I tried. I tried to find out the respondents who works between 7pm-7am at first. So, in ATUS-X, I created my new time variable-“work” with a time restriction “4am-7am” and “7pm-4am”. In the dataset, under the variable “work in 4am-7am”(or “work in 7pm-4am” variable), there are several values, such as 0 or 1 or 12 or 89, etc. I don’t understand what do these number mean at here. And there’s no information about the value description in the codebook.
You can ignore my method if mine is too complicated.
Thank you very much.
I appreciate your help.