Wave 1
Eye disease
make w1_eye_d=0 if w1_heopt1=96
replace w1_eye_d=1 if w1_heopt10 & w1_heopt1<96
Coronary heart disease
make w1_chd_d=0 if not missing(w1_finstat)
replace w1_chd_d=1 if w1_dim02_d=1orw1_dim03_d=1
Wave 2
NOTE: there was an error at w2 whereby not everyone with a cardiovascular disease at w1 was fed forward to w2. This makes ascertaining prevalence rates for w2 CVD conditions tricky. We decided that we would use report of the condition at w1 or w2 for prevalence of the typically chronic CVD conditions: hypertension, heart attack, heart murmur, heart failure, diabetes and stroke. For angina and abnormal heart rhythm, we will need to use the feed forward variable‘confirms diagnosis from previous wave’ (hediac) and‘still has condition from previous wave’(hedias) for the conditions respectively, because many reporting the condition at the previous wave may not still have it at w2.
Incident depression
make depres_d=0 if member of the sample at that wave replace depres_d=1 if psy3_d=1 & w1_psy3_d!=1
Prevalent hypertension
make hibp_d=0 if member of the sample at that wave replace hibp_d=1 if w1_dim01_d=1ordim01_d=1
Prevalent angina
make angina_d=0 if member of the sample at that wave replace angina_d=1 if hediac2=1ordim02_d=1
Prevalent heart attack
make hrtattack_d=0 if member of the sample at that wave replace hrtattack_d=1 if w1_dim03_d=1ordim03_d=1
Coronary heart disease/myocardial infarction
make chd_d=0 if member of the sample at that wave replace chd_d=1 if angina_d=1orhrtattack_d=1
Prevalent congestive heart failure
make hrtfail_d=0 if member of the sample at that wave replace hrtfail_d=1 if w1_dim04_d=1ordim04_d=1
Prevalent heart murmur
make murmur_d=0 if member of the sample at that wave replace murmur_d=1 if w1_dim05_d=1ordim05_d=1
Prevalent abnormal heart rhythm
make rhythm_d=0 if member of the sample at that wave replace rhythm_d=1 if hedias6=1ordim06_d=1
Prevalent diabetes
make diab_d=0 if member of the sample at that wave replace diab_d=1 if heacd=1
Prevalent stroke
make stroke_d=0 if member of the sample at that wave replace stroke_d=1 if w1_dim08_d=1ordim08_d=1
Prevalent high cholesterol
make hichol_d=0 if member of the sample at that wave replace hichol_d=1 if dia09_d=1
Prevalent lung disease
make lungdis_d=0 if member of the sample at that wave replace lungdis_d=1 if hedids1=1ordib01_d=1
Prevalent asthma
make asthma_d=0 if member of the sample at that wave replace asthma_d=1 if hedids2=1ordib02_d=1
Prevalent arthritis
make arthritis_d=0 if member of the sample at that wave replace arthritis_d=1 if hedids3=1ordib03_d=1
Prevalent osteoporosis
make osteop_d=0 if member of the sample at that wave replace osteop_d=1 if hedids4=1ordib04_d=1
Prevalent cancer
make cancer_d=0 if member of the sample at that wave replace cancer_d=1 if hedids5=1ordib05_d=1
Prevalent Parkinson’s disease
make parkins_d=0 if member of the sample at that wave replace parkins_d=1 if hedids6=1ordib06_d=1
Prevalent psychiatric difficulties
make psychdiff_d=0 if member of the sample at that wave replace psychdiff_d=1 if hedids7=1ordib07_d=1
Prevalent Alzheimer’s disease
make alzheimers_d=0 if member of the sample at that wave replace alzheimers_d=1 if hedids8=1ordib08_d=1
Prevalent dementia
make dementia_d=0 if member of the sample at that wave replace dementia_d=1 if hedids9=1ordib09_d=1
Prevalent eye condition
make eye_d=0 if heopt1=96
replace eye_d=1 if heops=1or(heopt10 & heopt1<96)
Wave 3 onwards
Prevalent stroke
make stroke_d=0 if member of the sample at that wave replace stroke_d=1 if hedimst=1 or hedacst=1
Incident depression
make depres_d=0 if member of the sample at that wave replace depres_d=1 if hepsyde=1 & hedibps=1
Prevalent diabetes
make diab_d=0 if member of the sample at that wave replace diab_d=1 if heacd=1at any previous wave
Prevalent hypertension
make hibp_d=0 if member of the sample at that wave replace hibp_d=1 if hedimbp=1 or hedasbp=1
Prevalent angina
make angina_d=0 if member of the sample at that wave replace angina_d=1 if hediman=1 or hedasan=1
Prevalent heart attack
make hrtattack_d=0 if member of the sample at that wave replace hrtattack_d=1 if hedimmi=1 or hedacmi=1
Coronary heart disease/myocardial infarction
make chd_d=0 if member of the sample at that wave replace chd_d=1 if angina_d=1orhrtattack_d=1
Prevalent high cholesterol
make hichol_d=0 if member of the sample at that wave replace hichol_d=1 if hedimch=1 or hedasch=1
Prevalent heart murmur
make murmur_d=0 if member of the sample at that wave replace murmur_d=1 if hedimhm=1 or hedashm=1
Prevalent abnormal heart rhythm
make rhythm_d=0 if member of the sample at that wave replace rhythm_d=1 if hedimar=1 or hedasar=1
Prevalent congestive heart failure
make hrtfail_d=0 if member of the sample at that wave replace hrtfail_d=1 if hedimhf=1 or hedashf=1
Prevalent lung disease
make lungdis_d=0 if member of the sample at that wave replace lungdis_d=1 if hediblu=1 or hedbslu=1
Prevalent asthma
make asthma_d=0 if member of the sample at that wave replace asthma_d=1 if hedibas=1 or hedbsas=1
Prevalent arthritis
make arthritis_d=0 if member of the sample at that wave replace arthritis_d=1 if hedibar=1 or hedbsar=1
Prevalent osteoporosis
make osteop_d=0 if member of the sample at that wave replace osteop_d=1 if hedibos=1 or hedbsos=1
Prevalent cancer
make cancer_d=0 if member of the sample at that wave replace cancer_d=1 if hedibca=1 or hedbsca=1
Prevalent Parkinson’s disease
make parkins_d=0 if member of the sample at that wave replace parkins_d=1 if hedibpd=1 or hedbspd=1
Prevalent psychiatric difficulties
make psychdiff_d=0 if member of the sample at that wave replace psychdiff_d=1 if hedibps=1 or hedbdps=1
Prevalent Alzheimer’s disease
make alzheimers_d=0 if member of the sample at that wave replace alzheimers_d=1 if hedibad=1 or hedbdad=1
Prevalent dementia
make dementia_d=0 if member of the sample at that wave replace dementia_d=1 if hedibde=1 or hedbsde=1
Prevalent eye condition
make eye_d=0 if member of the sample at that wave
replace eye_d=1 if (heopsgl=1orheopsdi=1orheopsmd=1orheopsca=1) or (heoptgl=1orheoptdi=1orheoptmd=1orheoptca=1)