By Anonymous - November 4, 2014

AHS2
> Baseline
> A4

Baseline Variable: COLITISY

Description

Number of years since diagnosed with: Ulcerative colitis/Crohn's disease

Notes

* "Never Had" value, coded as 0, added as appropriate as part of the never_had_updates
.
* Located on page A4
in version 1, page A3
on versions 2/3.

Data Values

Current

Levels Value
(empty string) Missing
0 Never Had (derived from on A03Q7
/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
- Version 1 - "never been told that you had any of the conditions listed below"
* A03Q7
- Version 2/3 - "never been told that you had any of the conditions listed below"
* COLITIS
- Treated for this in the last 12 months: Ulcerative colitis/Crohn's disease

Location

Questionnaires

Questionnaire Version Labeled Page Physical Page TIFF Image Index Scan Path
1 A4 info
/image
7 04 ''R:\Tiff_Quest_V1''
2 A3 info
/image
6 44 ''R:\Tiff_Quest_V2''
3 A3 info
/image
6 44 ''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 COLITISY = '0'
where COLITISY = ''
and A04Q8 = '1';

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

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

Before / After Counts

Version 1

Before After
A04Q8 COLITISY Count A04Q8 COLITISY Count
3023 3023
1 15 1 15
2 3 2 3
3 2 3 2
4 4 4 4
5 23 5 23
1 1955 1 0 1955

Version 2

Before After
A03Q7 COLITISY Count A03Q7 COLITISY Count
17438 17438
1 84 1 84
2 50 2 50
3 52 3 52
4 45 4 45
5 171 5 171
0 4 0 4
1 11441 1 0 11441
1 1 1 1 1 1
1 3 1 1 3 1
1 5 3 1 5 3

Version 3

Before After
A03Q7 COLITISY Count A03Q7 COLITISY Count
35639 35639
* 1 * 1
1 156 1 156
2 104 2 104
3 88 3 88
4 76 4 76
5 276 5 276
1 25732 1 0 25732
1 1 9 1 1 9
1 5 1 1 5 1