We use cookies and other tools to enhance your experience on our website and to analyze our web traffic.
For more information about these cookies and the data collected, please refer to our Privacy Policy.

SHHS Gender

8 posts
Was this reply useful? Learn more...
 
[-]
benjaminyetton +0 points · over 6 years ago

The Gender Variable in the SHHS cohort takes the values 1 and 2, but the description of the variable (both online and in the .csv data dictionary) do not specify which value corresponds to male/female. Which is which please? Might be a good idea to update that gender description too.

442 posts
bio
Was this reply useful? Learn more...
 
[-]
mrueschman +1 point · over 6 years ago

Thanks for raising the issue. In SHHS, gender has two levels: 1 = Male and 2 = Female.

Values for categorical variables are described in two places.

1. Online variable pages

E.g. https://sleepdata.org/datasets/shhs/variables/gender

2. 'domains.csv' file

Each categorical (type: 'choices') variable has a domain associated with it. These domains are fully described in the 'domains.csv' file, which is part of the data dictionary.

You mentioned the data dictionary CSV, so I'm guessing you were looking in the 'variables.csv' file. We have discussed possibly creating a combined version of 'variables' and 'domains' so as to not have to jump from one file to the next (i.e. 'variables.csv' references the 'gender12' domain, which is spelled out in 'domains.csv').

8 posts
Was this reply useful? Learn more...
 
[-]
benjaminyetton +0 points · over 6 years ago

Perfect thanks, I had not looked in the domains file...