nsrr / sof-data-dictionary

Data dictionary for the SOF study.
1 stars 0 forks source link

How should we handle missing codes in numeric variables? #1

Closed mcailler closed 9 years ago

mcailler commented 9 years ago

Example: V8LSEPMZ is a numeric variable (values ranging from 0 to 16.25) but also contains system missing codes for ~1650/4750 observations

CC: @remomueller @mrueschman @kevgleas @michellereid

mcailler commented 9 years ago

One solution is to change these variables to numeric, assign units where necessary, and also allow them to have domains (@remomueller swears this won't break spout c) but it could wreak havoc with spout o until sleepepi/spout#18 is closed

remomueller commented 9 years ago

Recent commit 4c658dc fixes spout o for numeric/integer variables that also have an associated domain.

remomueller commented 9 years ago

Before Spout Update:

before-spout-update

After Spout Update:

after-spout-update