By Anonymous - November 3, 2014

AHS2
> Baseline
> A4

Baseline Variable: HYPERTHY

Description

Number of years since diagnosed with: Hyperthyroidism (overactive thyroid)

Notes

* "Never Had" value, coded as 0, added as appropriate as part of the never_had_updates
.

Data Values

Current

Levels Value
(empty string) Missing
0 Never Had (derived from on A04Q8
variables)
1 Less than 5 years ago
2 5-9 years ago
3 10-14 years ago
4 15-19 years ago
5 20+ years ago

Original

Levels Value
(empty string) Missing
1 Less than 5 years ago
2 5-9 years ago
3 10-14 years ago
4 15-19 years ago
5 20+ years ago

* A04Q8
- "never been told that you had any of the conditions listed below"
* HYPERTH
- Treated for this in the last 12 months: Hyperthyroidism (overactive thyroid)

Location

Questionnaires

Questionnaire Version Labeled Page Physical Page TIFF Image Index Scan Path
1 A4 info
/image
7 04 ''R:\Tiff_Quest_V1''
2 A4 info
/image
7 43 ''R:\Tiff_Quest_V2''
3 A4 info
/image
7 43 ''R:\Tiff_Quest_V3''

Database Tables

Table Name Description
image.dbo.part1 modified version 1 part 1 data
image.dbo.part1_unmodified original/raw version 1 part 1 data

Modifications

"Never Had" Update

For details see: "Never Had" updates
. This is a never_had_updates#Type 5
variable.

SQL Code:

-- Version 1
update image.dbo.part1
set HYPERTHY = '0'
where HYPERTHY = ''
and A04Q8 = '1';

-- Version 2
update image.dbo.v2part1
set HYPERTHY = '0'
where HYPERTHY = ''
and A04Q8 = '1';

-- Version 3
update image.dbo.v3part1
set HYPERTHY = '0'
where HYPERTHY = ''
and A04Q8 = '1';

Before / After counts

Version 1

Before After
A04Q8 HYPERTHY Count A04Q8 HYPERTHY Count
2939 2939
1 28 1 28
2 17 2 17
3 15 3 15
4 13 4 13
5 58 5 58
1 1951 1 0 1951
1 1 1 1 1 1
1 4 1 1 4 1
1 5 2 1 5 2

Version 2

Before After
A04Q8 HYPERTHY Count A04Q8 HYPERTHY Count
15914 15914
1 171 1 171
2 102 2 102
3 77 3 77
4 51 4 51
5 281 5 281
0 4 0 4
1 12684 1 0 12684
1 1 2 1 1 2
1 5 4 1 5 4

Version 3

Before After
A04Q8 HYPERTHY Count A04Q8 HYPERTHY Count
31607 31607
* 1 * 1
1 408 1 408
2 218 2 218
3 187 3 187
4 157 4 157
5 488 5 488
0 1 0 1
1 28991 1 0 28991
1 1 10 1 1 10
1 2 2 1 2 2
1 3 3 1 3 3
1 4 1 1 4 1
1 5 8 1 5 8