Value sets define what data values we expect for a data item. Value sets are used to define ranges of valid values during data entry and to define categories for cross tabulation.
First we will create a value set for Age. We will use ten-year age groups.
- Click on the + next to Person record to make sure its items are showing on the tree.
- Right-click on Age and then select Add Value Set.
- Press Enter twice to accept the default Value Set Label and Value Set Name. The cursor will drop to the line below into the Value Label column.
- Type 0 to 9 for the Value Label, then Enter.
- Type 0 as the From value, then Enter.
- Type 9 as the To value, then Enter twice, skipping over the Special column.
- Type 10 to 19 for the next Value Label, then Enter.
- Type 10 as the From value, then Enter.
- Type 19 as the To value, then Enter twice, skipping over the Special column.
- Continue in this fashion until you have reached 90 to 99.
Next, we will create a value set for Sex.
- Right-click on Sex, then select Add Value Set.
- Press Enter twice to accept the default Value Set Label and Value Set Name. The cursor will drop to the line below into the Value Label column.
- Type Male as the first Value Label.
- Type 1 as the From value.
- Press Enter twice to skip over the To and Special columns.
- Type Female as the second Value Label.
- Type 2 as the From value.
- Press Enter twice to skip over the To and Special columns.
- Press Esc to finish creating the value set.
To finish up:
- Add a value set for Marital status. Use 1 for Married and 2 for Not married.
- Add values for the Housing record items from the housing information in the questionnaire.
- Save the work you have done so far: Select File -> Save from the main menu, or click on
on the toolbar.
When you completed this step, the screen might look something like: