SHHS Gender

6 posts
Was this reply useful? Learn more...
   
[-] Benjamin Yetton +0 points · 3 months 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.

120 posts
Was this reply useful? Learn more...
   
[-] mrueschman +1 point · 3 months 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').

6 posts
Was this reply useful? Learn more...
   
[-] Benjamin Yetton +0 points · 3 months ago

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

Write a Reply