Derivation
variable: dpt2date (table[s]: cen_individ, crs_bfup, crs_birth, crs_cenm)
variable: dpthh2date (table[s]: css_sei_all, gp_va, tmt_tmtv, ves_vese)
When variable is collected with DPT & HH together they are split:
foreach var in yn date datex vc {
forvalues x=1/3 {
gen dpt`x'`var'=dpthh`x'`var'
gen hh`x'`var'=dpthh`x'`var'
drop dpthh`x'`var'
}
}
Date is used as reported unless month is reported to be estimated (edited to be bank) or it is before date of birth and is recorded as estimated (edited to be one day after birth_date).