MEIRU Microdata Portal
  • Home
  • Overview
  • Microdata Catalog
  • Citations
  • Login
    Login
    Home / Central Data Catalog / MWI-MEIRU-TB-COMBINE-FINAL-2022-V01 / variable [V381]
central

TB cases (1974-2018) and controls (1998-2018) analytical dataset (Karonga)

Malawi
Get Microdata
Reference ID
MWI-MEIRU-TB-COMBINE-FINAL-2022-v01
Producer(s)
Mia Crampin, Estelle McLean
Collections
Karonga -District-wide Combined / Harmonized Datasets Karonga HDSS
Metadata
Documentation in PDF DDI/XML JSON
Created on
Nov 14, 2025
Last modified
Nov 15, 2025
Page views
24409
Downloads
151
  • Study Description
  • Data Dictionary
  • Downloads
  • Get Microdata
  • Data files
  • combined_tb_cases_controls_final

HIV status at interview date (D) (hivstatus)

Data file: combined_tb_cases_controls_final

Overview

Valid: 8952
Invalid: 3959
Type: Discrete
Decimal: 0
Start: 1378
End: 1378
Width: 1
Range: 0 - 1
Format: Numeric

Questions and instructions

Literal question
HIV status at interview date
Categories
Value Category Cases
0 Negative 4735
52.9%
1 Positive 4217
47.1%
Sysmiss 3959
Warning: these figures indicate the number of cases found in the data file. They cannot be interpreted as summary statistics of the population of interest.

Imputation and derivation

Derivation
variable: intdate [interview date] (table[s]: tb_tbx, tb_tbxto2007, tbold_tbpart1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: firsthivposdate [first HIV positive test date] (table[s]: hivart_kps_known_all)
variable: neg_date* [HIV negative date(s)] (table[s]: hivart_kps_known_all)

<Create using HIV test dates: assign someone as negative if any neg report was up to 3 years before and 1 month after interview date and as positive if first pos report was any time before and up to a year after interview>
gen datehiv=intdate
replace datehiv=starteps if starteps~=.
merge m:1 ident using ${hivdata}\hivart_kps_known_all, keep(master match) keepusing(firsthivposdate lastneverart_date firstart_date lastonart_date lastartstop_date neg_date*) nogen
gen hivstatus=.
gen nearesthivnegdate=.
lookfor neg_date
foreach neg_date in `r(varlist)' {
replace nearesthivnegdate=`neg_date' if datehiv-`neg_date'<=(365.25*3) & datehiv-`neg_date'>=-31 & `neg_date'~=.
replace hivstatus=0 if datehiv-`neg_date'<=(365.25*3) & datehiv-`neg_date'>=-31 & `neg_date'~=.
}
replace hivstatus=1 if datehiv>=firsthivposdate-365.25
la val hivstatus np
Back to Catalog
MEIRU Microdata Portal

© MEIRU Microdata Portal | admin@meirudata.mw | All Rights Reserved | Register