<?xml version='1.0' encoding='UTF-8'?>
<codeBook version="1.2.2" ID="MWI-MEIRU-TB-COMBINE-FINAL-2022-v01" xml-lang="en" xmlns="http://www.icpsr.umich.edu/DDI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.icpsr.umich.edu/DDI http://www.icpsr.umich.edu/DDI/Version1-2-2.xsd">
  <docDscr>
    <citation>
      <titlStmt>
        <titl>
          combined_tb_cases_controls_final
        </titl>
        <IDNo>
          DDI-MWI-MEIRU-TB-COMBINE-FINAL-2022-v01
        </IDNo>
      </titlStmt>
      <prodStmt>
        <producer abbr="TC" affiliation="MEIRU" role="Metadata entry and editing officer">
          Themba Chirwa
        </producer>
        <producer abbr="ENM" affiliation="MEIRU" role="Metadata suppervisor">
          Elizabeth Nancy Munthali
        </producer>
        <producer abbr="EM" affiliation="LSHTM and MEIRU" role="Documentation planning and supervision">
          Estelle McLean
        </producer>
        <producer abbr="MEIRU" affiliation="MEIRU" role="Agency">
          Malawi Epidemiology and Intervention Research Unit
        </producer>
        <prodDate date="2022-04-07">
          2022-04-07
        </prodDate>
        <software version="4.0.10" date="2018-05-02">
          Nesstar Publisher
        </software>
      </prodStmt>
      <distStmt>
        <depositr/>
      </distStmt>
      <verStmt>
        <version>
          Version 1 (April 2022)
        </version>
      </verStmt>
    </citation>
    <docSrc>
      <titlStmt>
        <titl>
          combined_tb_cases_controls_final
        </titl>
      </titlStmt>
      <distStmt>
        <depositr/>
      </distStmt>
    </docSrc>
  </docDscr>
  <stdyDscr>
    <citation>
      <titlStmt>
        <titl>
          TB cases (1974-2018) and controls (1998-2018) analytical dataset (Karonga)
        </titl>
        <IDNo>
          MWI-MEIRU-TB-COMBINE-FINAL-2022-v01
        </IDNo>
      </titlStmt>
      <rspStmt>
        <AuthEnty affiliation="MEIRU &amp; LSHTM">
          Mia Crampin
        </AuthEnty>
        <AuthEnty affiliation="MEIRU &amp; LSHTM">
          Estelle McLean
        </AuthEnty>
        <othId>
          <p>
            MEIRU Core datamanagement team
          </p>
        </othId>
      </rspStmt>
      <prodStmt>
        <prodDate date="2017-05-12">
          2017-05-12
        </prodDate>
        <software version="4.0.10" date="2018-05-02">
          Nesstar Publisher
        </software>
      </prodStmt>
      <distStmt>
        <contact affiliation="LSHTM &amp; MEIRU" email="Estelle.McLean@lshtm.ac.uk">
          Estelle McLean
        </contact>
        <depositr/>
      </distStmt>
      <serStmt>
        <serName>
          Demographic Surveillance
        </serName>
      </serStmt>
    </citation>
    <stdyInfo>
      <abstract>
        Data on TB cases and controls have been collected in 3 distinct eras, pre-2000, 2000-2007 and 2007-2018, and within these eras data have been stored on different tables. This dataset combines data from all of the tables to have one dataset for all TB cases and controls, including all their questionnaire, laboratory and outcome data.
      </abstract>
      <sumDscr>
        <nation abbr="MWI">
          Malawi
        </nation>
        <geogCover>
          karonga, chilumba
        </geogCover>
        <anlyUnit>
          Individual
        </anlyUnit>
      </sumDscr>
    </stdyInfo>
    <method>
      <dataColl>
        <dataCollector abbr="MEIRU">
          Malawi Epidemiology and Intervention Research Unit
        </dataCollector>
        <collMode>
          Face-to-face [f2f]
        </collMode>
        <resInstru>
          Added as external resources
        </resInstru>
        <sources/>
      </dataColl>
    </method>
    <dataAccs>
      <useStmt>
        <contact>
          Malawi Epidemiology and Intervention Research Unit
        </contact>
        <conditions>
          <![CDATA[This data is made available for licensed access under the following conditions:

1. Data and other material provided by MEIRU will not be redistributed or sold to other individuals, institutions or organisations without MEIRU's written agreement.

2. In the case of multi-centre datasets, data originating from a single contributing member centre of the collaboration may not be analysed or reported on in isolation without the express permission of the member centre concerned.

3. No attempt will be made to re-identify respondents, and there will be no use of the identity of any person or establishment discovered inadvertently. Any such discovery will be reported immediately to MEIRU.

4. No attempt will be made to produce links between datasets provided by MEIRU or between MEIRU data and other datasets that could identify individuals.

5. Any books, articles, conference papers, theses, dissertations, reports or other publications employing data obtained from MEIRU will cite the source, in line with the citation requirement provided with the dataset.

6. An electronic copy of all publications based on the requested data will be sent to MEIRU.

7. MEIRU, MEIRU research collaborators and the relevant funding agencies bear no responsibility for the data's use or interpretation or inferences based upon it.]]>
        </conditions>
      </useStmt>
    </dataAccs>
  </stdyDscr>
  <fileDscr ID="F1" URI="combined_tb_cases_controls_final.Nesstar?Index=0&amp;Name=combined_tb_cases_controls_final">
    <fileTxt>
      <fileName>
        combined_tb_cases_controls_final.NSDstat
      </fileName>
      <fileCont>
        The interview data for TB cases from the 3 eras are appended together and merged to the 'tbcpu' file. This latter file is the results of an algorithm that goes through all the TB data and creates TB episodes and assigns them to a category of how likely the episode was actually TB (see documentation on tbcpu algorithm). Only episodes on the tbcpu file are kept so other questionnaire data are dropped. Questionnaire data on controls from the 3 eras are appended to the cases dataset. Existing variables are modified and new ones created using the data from the questionnaires and data on lab results, contacts, GPS coordinates and follow-up and outcomes which are merged in. In the variable labels (S) indicates that the variable is unchanged from the original source and (D) indicates that it is a 'derived' variable, often using more than one source variable. For both types information on where the data come from and how they are processed is found in the 'Recoding and Derivation' section
      </fileCont>
      <dimensns>
        <caseQnty>
          12911
        </caseQnty>
        <varQnty>
          394
        </varQnty>
      </dimensns>
      <fileType>
        Nesstar 200801
      </fileType>
      <filePlac>
        Malawi Epidemiology and Interventions Research Unit
      </filePlac>
    </fileTxt>
  </fileDscr>
  <dataDscr>
    <var ID="V1" name="ident" files="F1" intrvl="discrete">
      <location StartPos="1" EndPos="7" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of person linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of person linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        unique identifier of person linkable to other studies
      </txt>
      <codInstr>
        variable: ident (table[s]: many of the tables link together on ident)
      </codInstr>
      <varFormat type="character" schema="other"/>
      <notes>
        ident available from 1974 to 2018
      </notes>
    </var>
    <var ID="V2" name="case" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="8" EndPos="8" width="1" RecSegNo="1"/>
      <labl>
        whether person is a case or control (D)
      </labl>
      <qstn>
        <qstnLit>
          whether person is a case or controlwhether person is a case or control
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        whether person is a case or control
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Control
        </labl>
        <catStat type="freq">
          3820
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Case
        </labl>
        <catStat type="freq">
          9091
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[Variable is created during appending of case/control datasets
<this is the code that put the datasets for the main file together, unless otherwise indicated, the code is working off this dataset>
**TBX (CASES)
use ${newstata}\tbold_tbpart2, clear
rename * *_2
rename ident_2 ident
save ${tempfiles}\tbold_tbpart2, replace
use ${newstata}\tbold_tbpart1, clear /*data prior to 2000*/
merge m:1 ident using ${tempfiles}\tbold_tbpart2
gen intdiff=abs(intdate_2-intdate)
bys ident: egen mindiff=min(intdiff)
gen keep=1 if mindiff==intdiff & _m==3
desc *_2, varlist
foreach var in `r(varlist)' {
	cap replace `var'=. if keep~=1
	cap replace `var'="" if keep~=1
	}
gen case=1
rename occhead occheadold
save ${tempfiles}\tbold_tbpart12, replace

use ${newstata}\tb_tbxto2007, clear /*data from 2000 to 2007*/
gen case=1
save ${tempfiles}\tb_tbxto2007, replace

use ${newstata}\tb_tbx, clear /*data from 2007 onwards*/
gen case=1
save ${tempfiles}\tb_tbx, replace

**TBO (CONTROLS)
use ${newstata}\tbold_control, clear /*data prior to 2000*/
gen case=0
rename occhead occheadold
save ${tempfiles}\tbold_control, replace

use ${newstata}\tb_tboto2007, clear /*data from 2000 to 2007*/
gen case=0
save ${tempfiles}\tb_tboto2007, replace
use ${newstata}\tb_tbo, clear /*data from 2007 onwards*/
gen case=0
save ${tempfiles}\tb_tbo, replace

use ${tempfiles}\tbold_tbpart12, clear
append using ${tempfiles}\tb_tbxto2007
rename smeacult smeacult_old
append using ${tempfiles}\tb_tbx
duplicates drop ident intdate, force
preserve
use ${newstata}\tbcpu, clear
duplicates drop ident intdate, force
keep ident tbtype tbcpu mic_res outcome intdate starteps fineps pos_cult
rename (mic_res outcome) (mic_resH outcome_cpu)
save ${tempfiles}\tbcpu_edit, replace
restore
merge 1:1 ident intdate using ${tempfiles}\tbcpu_edit, keep(match) nogen
append using ${tempfiles}\tbold_control
append using ${tempfiles}\tb_tboto2007
append using ${tempfiles}\tb_tbo
bys ident intdate (mohregno): keep if _n==_N
*add in crshse from residency episodes
preserve
use ident startdate stopdate crshse using ${gendata}\crs_residency_episodes_clean_nopoly, clear
save ${tempfiles}\reseps, replace
restore
drop _m
joinby ident using ${tempfiles}\reseps, unmatched(master)
gen crs=1 if intdate>=startdate & intdate<stopdate
replace crshse="9999999" if crs~=1
bys ident intdate (crshse): keep if _n==1
replace crshse="" if crshse=="9999999"
drop startdate stopdate _m
save ${tempfiles}\comb_tbx_tbo, replace

la def case 0 "Control" 1 "Case"
la val case case]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        case available from 1974 to 2018
      </notes>
    </var>
    <var ID="V3" name="typind" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="9" EndPos="9" width="1" RecSegNo="1"/>
      <labl>
        Type of control
      </labl>
      <qstn>
        <qstnLit>
          Type of control
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="6"/>
      </valrng>
      <sumStat type="vald">
        1950
      </sumStat>
      <sumStat type="invd">
        10961
      </sumStat>
      <txt>
        Type of control
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Random
        </labl>
        <catStat type="freq">
          896
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Spouse
        </labl>
        <catStat type="freq">
          36
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Sick
        </labl>
        <catStat type="freq">
          322
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          ART Clinic
        </labl>
        <catStat type="freq">
          152
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          TSD
        </labl>
        <catStat type="freq">
          245
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          LIS
        </labl>
        <catStat type="freq">
          299
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10961
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: typind (table[s]:  tb_tbo)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        typind available from 2007 to 2014
      </notes>
    </var>
    <var ID="V4" name="hhcons" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="10" EndPos="10" width="1" RecSegNo="1"/>
      <labl>
        If eligible for TB household study: has the patient consented?
      </labl>
      <qstn>
        <qstnLit>
          If eligible for TB household study: has the patient consented?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        If eligible for TB household study: has the patient consented?
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          12297
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          614
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <codInstr>
        variable: hhcons (table[s]: tb_tbx)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        hhcons available from 1974 to 2018
      </notes>
    </var>
    <var ID="V5" name="spstdy" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="11" EndPos="11" width="1" RecSegNo="1"/>
      <labl>
        In Spouse study (D)
      </labl>
      <qstn>
        <qstnLit>
          In Spouse study
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        In Spouse study
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          12634
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          277
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: idcase [ident of TB patient] (table[s]: tb_tbs1)
variable: intdate [interview date] (table[s]: tb_tbs1)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V6" name="imm_eu" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="12" EndPos="12" width="1" RecSegNo="1"/>
      <labl>
        In EU immunology study (D)
      </labl>
      <qstn>
        <qstnLit>
          In EU immunology study
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        In EU immunology study
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          11861
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1050
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: intdate1 [interview date] (table[s]: tb_tbi)
variable: eu [in EU study] (table[s]: tb_tbi)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V7" name="imm_g" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="13" EndPos="13" width="1" RecSegNo="1"/>
      <labl>
        In Gates immunology study (D)
      </labl>
      <qstn>
        <qstnLit>
          In Gates immunology study
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        In Gates immunology study
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          12549
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          362
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: intdate1 [interview date] (table[s]: tb_tbi)
variable: gates[in Gates study] (table[s]: tb_tbi)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V8" name="stid" files="F1" intrvl="discrete">
      <location StartPos="14" EndPos="20" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of person not linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of person not linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        6058
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        unique identifier of person not linkable to other studies
      </txt>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V9" name="pvrstid" files="F1" intrvl="discrete">
      <location StartPos="21" EndPos="27" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of palm vein registration study
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of palm vein registration study
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        967
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        unique identifier of palm vein registration study
      </txt>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V10" name="intdate" files="F1" intrvl="discrete">
      <location StartPos="28" EndPos="37" width="10" RecSegNo="1"/>
      <labl>
        date of interview
      </labl>
      <qstn>
        <qstnLit>
          date of interview
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="min">
        1974-06-15
      </sumStat>
      <sumStat type="max">
        2018-07-24
      </sumStat>
      <txt>
        date of interview
      </txt>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V11" name="annualfu" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="38" EndPos="38" width="1" RecSegNo="1"/>
      <labl>
        annual follow-up
      </labl>
      <qstn>
        <qstnLit>
          annual follow-up
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        1136
      </sumStat>
      <sumStat type="invd">
        11775
      </sumStat>
      <txt>
        annual follow-up
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          531
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          605
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11775
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V12" name="version" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="39" EndPos="40" width="2" RecSegNo="1"/>
      <labl>
        version of form
      </labl>
      <qstn>
        <qstnLit>
          version of form
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="14"/>
      </valrng>
      <sumStat type="vald">
        6858
      </sumStat>
      <sumStat type="invd">
        6053
      </sumStat>
      <txt>
        version of form
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V13" name="outvers" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="41" EndPos="41" width="1" RecSegNo="1"/>
      <labl>
        Version of outcome form
      </labl>
      <qstn>
        <qstnLit>
          Version of outcome form
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="3"/>
      </valrng>
      <sumStat type="vald">
        3955
      </sumStat>
      <sumStat type="invd">
        8956
      </sumStat>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V14" name="informtid" files="F1" intrvl="discrete">
      <location StartPos="42" EndPos="48" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of informant linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of informant linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        455
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V15" name="informant" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="49" EndPos="49" width="1" RecSegNo="1"/>
      <labl>
        type of informant (D)
      </labl>
      <qstn>
        <qstnLit>
          what is the type of informant ?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="8"/>
      </valrng>
      <sumStat type="vald">
        8845
      </sumStat>
      <sumStat type="invd">
        4066
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Self
        </labl>
        <catStat type="freq">
          7736
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Parent
        </labl>
        <catStat type="freq">
          613
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Child/niece/nephew/grandchild
        </labl>
        <catStat type="freq">
          54
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Sibling/cousin
        </labl>
        <catStat type="freq">
          163
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Spouse
        </labl>
        <catStat type="freq">
          123
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          In-law
        </labl>
        <catStat type="freq">
          35
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Grandparent/Aunt/Uncle
        </labl>
        <catStat type="freq">
          116
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Non-relative
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          4066
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: self [informant is self] (table[s]: tb_tbo, tb_tboto2007)
variable: relinform [relationship of informant to patient] (table[s]: tb_tbx, tb_tbxto2007, tbold_tbpart1/2, tb_tbo, tbold_control)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V16" name="birth_date" files="F1" intrvl="discrete">
      <location StartPos="50" EndPos="59" width="10" RecSegNo="1"/>
      <labl>
        Date of birth (D)
      </labl>
      <qstn>
        <qstnLit>
          Date of birth
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        12910
      </sumStat>
      <codInstr>
        <![CDATA[variable: birthest [birth decade estimate] (table[s]: gen_identity)
variable: birthdd [day of birth] (table[s]: gen_identity)
variable: birthmm [month of birth] (table[s]: gen_identity)
variable: birthyear [year of birth] (table[s]: gen_identity)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V17" name="sex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="60" EndPos="60" width="1" RecSegNo="1"/>
      <labl>
        Sex
      </labl>
      <qstn>
        <qstnLit>
          Sex
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        12910
      </sumStat>
      <sumStat type="invd">
        1
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Male
        </labl>
        <catStat type="freq">
          6502
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Female
        </labl>
        <catStat type="freq">
          6408
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <codInstr>
        Sex ( whether female or male)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V18" name="notprivate" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="61" EndPos="61" width="1" RecSegNo="1"/>
      <labl>
        Impossible to ask marital history and pregnancy questions
      </labl>
      <qstn>
        <qstnLit>
          If it was impossible to ask these questions [marital history and pregnancy], tick here
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        1
      </sumStat>
      <sumStat type="invd">
        12910
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1760
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V19" name="marital" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="62" EndPos="62" width="1" RecSegNo="1"/>
      <labl>
        Marital status (D)
      </labl>
      <qstn>
        <qstnLit>
          Marital status
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        6768
      </sumStat>
      <sumStat type="invd">
        6143
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never married
        </labl>
        <catStat type="freq">
          541
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Married
        </labl>
        <catStat type="freq">
          4519
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorced/separated
        </labl>
        <catStat type="freq">
          753
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Widowed
        </labl>
        <catStat type="freq">
          588
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          previously married
        </labl>
        <catStat type="freq">
          367
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          46
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6097
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: marital [current marital status] (table[s]: tb_tbx, tb_tbo, tb_tboto2007)
variable: marriedeve [ever married] (table[s]: tbold_tbpart1/2, tbold_control)
variable: marriednow [currently married] (table[s]: tbold_tbpart1/2, tbold_control)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V20" name="schlever" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="63" EndPos="63" width="1" RecSegNo="1"/>
      <labl>
        Ever been to school (D)
      </labl>
      <qstn>
        <qstnLit>
          Ever been to school?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        7202
      </sumStat>
      <sumStat type="invd">
        5709
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never
        </labl>
        <catStat type="freq">
          539
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Current
        </labl>
        <catStat type="freq">
          433
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Ever
        </labl>
        <catStat type="freq">
          6230
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          5699
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: schlever [ever been to school] (table[s]: tb_tbx, tb_tbo, tb_tboto2007)
variable: attdschl [currently attending school] (table[s]: tbold_tbpart1/2, tbold_control)
variable: prevschl [previously attended school] (table[s]: tbold_tbpart1/2, tbold_control)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V21" name="schltype" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="64" EndPos="64" width="1" RecSegNo="1"/>
      <labl>
        Highest schooling type (D)
      </labl>
      <qstn>
        <qstnLit>
          Highest schooling type
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        6659
      </sumStat>
      <sumStat type="invd">
        6252
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          None
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Primary
        </labl>
        <catStat type="freq">
          4873
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Secondary
        </labl>
        <catStat type="freq">
          1681
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Tertiary
        </labl>
        <catStat type="freq">
          105
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Higher
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6249
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: schltype [highest schooling type] (table[s]: tb_tbx, tb_tbo, tb_tboto2007)
variable: attdtype [current schooling type] (table[s]: tbold_tbpart1/2, tbold_control)
variable: prevtype [previous schooling type] (table[s]: tbold_tbpart1/2, tbold_control)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V22" name="schlstd" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="65" EndPos="66" width="2" RecSegNo="1"/>
      <labl>
        Highest schooling standard (D)
      </labl>
      <qstn>
        <qstnLit>
          Highest schooling standard
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        6206
      </sumStat>
      <sumStat type="invd">
        6705
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: schlstd [highest school standard] (table[s]: tb_tbx, tb_tbo, tb_tboto2007)
variable: attdstd [current school standard] (table[s]: tbold_tbpart1/2, tbold_control)
variable: prevstd [previous school standard] (table[s]: tbold_tbpart1/2, tbold_control)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V23" name="stayaway" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="67" EndPos="67" width="1" RecSegNo="1"/>
      <labl>
        Do you stay away from your usual household to attend school?
      </labl>
      <qstn>
        <qstnLit>
          Do you stay away from your usual household to attend school?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        113
      </sumStat>
      <sumStat type="invd">
        12798
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          101
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12788
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V24" name="yearsaway" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="68" EndPos="69" width="2" RecSegNo="1"/>
      <labl>
        If yes [to staying away for school], how many years so far?
      </labl>
      <qstn>
        <qstnLit>
          If yes [to staying away for school], how many years so far?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        10
      </sumStat>
      <sumStat type="invd">
        12901
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V25" name="emp" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="70" EndPos="72" width="3" RecSegNo="1"/>
      <labl>
        Employment code
      </labl>
      <qstn>
        <qstnLit>
          Employment code
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="999"/>
      </valrng>
      <invalrng>
        <item VALUE="999"/>
      </invalrng>
      <sumStat type="vald">
        5401
      </sumStat>
      <sumStat type="invd">
        7510
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Not applicable
        </labl>
        <catStat type="freq">
          98
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Full-time educaton
        </labl>
        <catStat type="freq">
          323
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Unable to work
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Retired
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          Looking for work
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Housework
        </labl>
        <catStat type="freq">
          491
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          30
        </catValu>
        <labl>
          Employer no sub-category
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Runs own business
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          ????
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          In cash economy
        </labl>
        <catStat type="freq">
          810
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          Subsistence economy
        </labl>
        <catStat type="freq">
          2942
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Own account don't know payment
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Salary (monthly)
        </labl>
        <catStat type="freq">
          526
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Wage (weekly)
        </labl>
        <catStat type="freq">
          46
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Casual or piecework
        </labl>
        <catStat type="freq">
          109
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Unpaid worker
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Employee don't know payment
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          No information
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          55
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7455
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V26" name="occ" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="73" EndPos="74" width="2" RecSegNo="1"/>
      <labl>
        Main occupation (D)
      </labl>
      <qstn>
        <qstnLit>
          Main occupation
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        7098
      </sumStat>
      <sumStat type="invd">
        5813
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Not working
        </labl>
        <catStat type="freq">
          1139
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Teachers, nurses, clergy, writers
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Teachers
        </labl>
        <catStat type="freq">
          116
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Health professionals
        </labl>
        <catStat type="freq">
          30
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          Clergy
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Other professionals
        </labl>
        <catStat type="freq">
          50
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Managing small family business
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Management in large organisations
        </labl>
        <catStat type="freq">
          31
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          24
        </catValu>
        <labl>
          Small family business
        </labl>
        <catStat type="freq">
          293
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          25
        </catValu>
        <labl>
          Commercial farmer
        </labl>
        <catStat type="freq">
          9
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          26
        </catValu>
        <labl>
          Traditional authority
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          30
        </catValu>
        <labl>
          Small trader/store keeper
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Desk, shop or official outdoor jobs
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          32
        </catValu>
        <labl>
          Small trader/store
        </labl>
        <catStat type="freq">
          283
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          Office worker
        </labl>
        <catStat type="freq">
          51
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          34
        </catValu>
        <labl>
          Barman/girl, waiter
        </labl>
        <catStat type="freq">
          22
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          35
        </catValu>
        <labl>
          Sales assistant
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          36
        </catValu>
        <labl>
          Army/police
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          37
        </catValu>
        <labl>
          Clinical assistants
        </labl>
        <catStat type="freq">
          27
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          39
        </catValu>
        <labl>
          Other non-manual
        </labl>
        <catStat type="freq">
          17
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          Modern skills
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          Traditional craft
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          43
        </catValu>
        <labl>
          Crafts and related skills
        </labl>
        <catStat type="freq">
          264
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          44
        </catValu>
        <labl>
          Driver/assistant driver
        </labl>
        <catStat type="freq">
          82
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          45
        </catValu>
        <labl>
          African Doctor/herbalist
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Other skilled manual
        </labl>
        <catStat type="freq">
          76
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Agriculture
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Other manual work
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Subsistence farmer
        </labl>
        <catStat type="freq">
          4093
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Herdsman
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          55
        </catValu>
        <labl>
          Fisherman
        </labl>
        <catStat type="freq">
          143
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          56
        </catValu>
        <labl>
          Labourer
        </labl>
        <catStat type="freq">
          96
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          57
        </catValu>
        <labl>
          Security guard/watchman
        </labl>
        <catStat type="freq">
          112
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          58
        </catValu>
        <labl>
          House boy/girl
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Other unskilled manual
        </labl>
        <catStat type="freq">
          61
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          57
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          5756
        </catStat>
      </catgry>
      <codInstr>
        variable: occ (table[s]: tb_tbx, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V27" name="occgp" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="75" EndPos="76" width="2" RecSegNo="1"/>
      <labl>
        Categorised occupation variable (D)
      </labl>
      <qstn>
        <qstnLit>
          Categorised occupation variable
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="11"/>
      </valrng>
      <sumStat type="vald">
        7098
      </sumStat>
      <sumStat type="invd">
        5813
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Not working
        </labl>
        <catStat type="freq">
          1139
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          student
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          unskilled manual (irr wage)
        </labl>
        <catStat type="freq">
          142
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          farmer
        </labl>
        <catStat type="freq">
          4098
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          fisherman
        </labl>
        <catStat type="freq">
          143
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          skilled manual (irr wage)
        </labl>
        <catStat type="freq">
          305
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          non-manual (irr wage)
        </labl>
        <catStat type="freq">
          28
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          small trader/business
        </labl>
        <catStat type="freq">
          283
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          unskilled manual (reg wage)
        </labl>
        <catStat type="freq">
          145
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          skilled manual (reg wage)
        </labl>
        <catStat type="freq">
          137
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          non-manual (reg wage)
        </labl>
        <catStat type="freq">
          43
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          professional
        </labl>
        <catStat type="freq">
          635
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          5813
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: occupation [main occupation] (table[s]: derived variable)
variable: emp [employment status] (table[s]: tb_tbx, tb_tbo, tb_tboto2007)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V28" name="emp_score" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="77" EndPos="77" width="1" RecSegNo="1"/>
      <labl>
        Categorised occ/emp variable (D)
      </labl>
      <qstn>
        <qstnLit>
          Categorised occ/emp variable
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="3"/>
      </valrng>
      <sumStat type="vald">
        7098
      </sumStat>
      <sumStat type="invd">
        5813
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Low
        </labl>
        <catStat type="freq">
          1281
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Medium
        </labl>
        <catStat type="freq">
          4574
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          High
        </labl>
        <catStat type="freq">
          1243
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          5813
        </catStat>
      </catgry>
      <codInstr>
        variable: occgp [categorised occupation] (table[s]: derived variable)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V29" name="ind" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="78" EndPos="80" width="3" RecSegNo="1"/>
      <labl>
        describe industry (if not in agriculture/ forestry):
      </labl>
      <qstn>
        <qstnLit>
          describe industry (if not in agriculture/ forestry):
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="999"/>
      </valrng>
      <invalrng>
        <item VALUE="999"/>
      </invalrng>
      <sumStat type="vald">
        809
      </sumStat>
      <sumStat type="invd">
        12102
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <catStat type="freq">
          278
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Agriculture &amp; forestry
        </labl>
        <catStat type="freq">
          371
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Fishing
        </labl>
        <catStat type="freq">
          25
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Mining
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Primary producers not classified
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Food processing &amp; sales
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Drink processing &amp; sales
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Building &amp; road construction
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          32
        </catValu>
        <labl>
          Mining &amp; industrial manufacturing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          Workshop &amp; domestic production
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          37
        </catValu>
        <labl>
          Not classified
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          39
        </catValu>
        <labl>
          Manufacturing construction and repair not classified
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          40
        </catValu>
        <labl>
          <![CDATA[Transport  & utilities]]>
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          <![CDATA[Transport  & utilities water]]>
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          <![CDATA[Transport  & utilities gas]]>
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          43
        </catValu>
        <labl>
          Electricity
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          44
        </catValu>
        <labl>
          Telephone
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          45
        </catValu>
        <labl>
          Transport
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Transport and utilities not classified
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Petty, retail &amp; wholesale
        </labl>
        <catStat type="freq">
          30
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Retail
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Wholesale
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Financial
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Trade not classified
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          61
        </catValu>
        <labl>
          Health
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          62
        </catValu>
        <labl>
          Personal &amp; domestic
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          63
        </catValu>
        <labl>
          Government &amp; security
        </labl>
        <catStat type="freq">
          21
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          64
        </catValu>
        <labl>
          Education &amp; pastoral
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          65
        </catValu>
        <labl>
          Information &amp; entertainment
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          69
        </catValu>
        <labl>
          Public service not classified
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          70
        </catValu>
        <labl>
          No sub-category available
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          90
        </catValu>
        <labl>
          Unclassifiable no sub-category available
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Unclassifiable no information
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12100
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V30" name="trained" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="81" EndPos="81" width="1" RecSegNo="1"/>
      <labl>
        Did you formally train in this occupation?
      </labl>
      <qstn>
        <qstnLit>
          Did you formally train in this occupation?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        488
      </sumStat>
      <sumStat type="invd">
        12423
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          434
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          54
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          46
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12377
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V31" name="empnum" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="82" EndPos="83" width="2" RecSegNo="1"/>
      <labl>
        How many people do you employ in your main occupation?
      </labl>
      <qstn>
        <qstnLit>
          How many people do you employ in your main occupation?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        457
      </sumStat>
      <sumStat type="invd">
        12454
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V32" name="occqualany" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="84" EndPos="84" width="1" RecSegNo="1"/>
      <labl>
        Do you have a formal qualification for the work you do in your main occupation?
      </labl>
      <qstn>
        <qstnLit>
          Do you have a formal qualification for the work you do in your main occupation?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3431
      </sumStat>
      <sumStat type="invd">
        9480
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          3156
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          275
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          645
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8835
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V33" name="emphead" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="85" EndPos="87" width="3" RecSegNo="1"/>
      <labl>
        Employment code [of household head]
      </labl>
      <qstn>
        <qstnLit>
          Employment code [of household head]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="999"/>
      </valrng>
      <invalrng>
        <item VALUE="999"/>
      </invalrng>
      <sumStat type="vald">
        4440
      </sumStat>
      <sumStat type="invd">
        8471
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Not applicable
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Full-time educaton
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Unable to work
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Retired
        </labl>
        <catStat type="freq">
          31
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          Looking for work
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Housework
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          30
        </catValu>
        <labl>
          Employer no sub-category
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Runs own business
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          ????
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          In cash economy
        </labl>
        <catStat type="freq">
          633
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          Subsistence economy
        </labl>
        <catStat type="freq">
          2919
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Own account don't know payment
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Salary (monthly)
        </labl>
        <catStat type="freq">
          690
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Wage (weekly)
        </labl>
        <catStat type="freq">
          33
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Casual or piecework
        </labl>
        <catStat type="freq">
          71
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Unpaid worker
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Employee don't know payment
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          No information
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          92
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8379
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V34" name="occhead" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="88" EndPos="89" width="2" RecSegNo="1"/>
      <labl>
        Main occuption of household head (D)
      </labl>
      <qstn>
        <qstnLit>
          Main occuption of household head
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        6174
      </sumStat>
      <sumStat type="invd">
        6737
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Not working
        </labl>
        <catStat type="freq">
          75
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Teachers, nurses, clergy, writers
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Teachers
        </labl>
        <catStat type="freq">
          162
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Health professionals
        </labl>
        <catStat type="freq">
          50
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          Clergy
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Other professionals
        </labl>
        <catStat type="freq">
          43
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Managing small family business
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Management in large organisations
        </labl>
        <catStat type="freq">
          62
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          24
        </catValu>
        <labl>
          Small family business
        </labl>
        <catStat type="freq">
          128
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          25
        </catValu>
        <labl>
          Commercial farmer
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          26
        </catValu>
        <labl>
          Traditional authority
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          30
        </catValu>
        <labl>
          Small trader/store keeper
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Desk, shop or official outdoor jobs
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          32
        </catValu>
        <labl>
          Small trader/store
        </labl>
        <catStat type="freq">
          302
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          Office worker
        </labl>
        <catStat type="freq">
          53
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          34
        </catValu>
        <labl>
          Barman/girl, waiter
        </labl>
        <catStat type="freq">
          26
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          35
        </catValu>
        <labl>
          Sales assistant
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          36
        </catValu>
        <labl>
          Army/police
        </labl>
        <catStat type="freq">
          48
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          37
        </catValu>
        <labl>
          Clinical assistants
        </labl>
        <catStat type="freq">
          52
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          39
        </catValu>
        <labl>
          Other non-manual
        </labl>
        <catStat type="freq">
          29
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          Modern skills
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          Traditional craft
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          43
        </catValu>
        <labl>
          Crafts and related skills
        </labl>
        <catStat type="freq">
          256
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          44
        </catValu>
        <labl>
          Driver/assistant driver
        </labl>
        <catStat type="freq">
          98
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          45
        </catValu>
        <labl>
          African Doctor/herbalist
        </labl>
        <catStat type="freq">
          17
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Other skilled manual
        </labl>
        <catStat type="freq">
          100
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Agriculture
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Other manual work
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Subsistence farmer
        </labl>
        <catStat type="freq">
          4118
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Herdsman
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          55
        </catValu>
        <labl>
          Fisherman
        </labl>
        <catStat type="freq">
          170
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          56
        </catValu>
        <labl>
          Labourer
        </labl>
        <catStat type="freq">
          82
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          57
        </catValu>
        <labl>
          Security guard/watchman
        </labl>
        <catStat type="freq">
          160
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          58
        </catValu>
        <labl>
          House boy/girl
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Other unskilled manual
        </labl>
        <catStat type="freq">
          67
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          97
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6640
        </catStat>
      </catgry>
      <codInstr>
        variable: occhead [household head occupation] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V35" name="occgphead" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="90" EndPos="91" width="2" RecSegNo="1"/>
      <labl>
        Categorised occupation variable of household head (D)
      </labl>
      <qstn>
        <qstnLit>
          Categorised occupation variable of household head
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="11"/>
      </valrng>
      <sumStat type="vald">
        6174
      </sumStat>
      <sumStat type="invd">
        6737
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Not working
        </labl>
        <catStat type="freq">
          75
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          student
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          unskilled manual (irr wage)
        </labl>
        <catStat type="freq">
          155
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          farmer
        </labl>
        <catStat type="freq">
          4121
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          fisherman
        </labl>
        <catStat type="freq">
          170
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          skilled manual (irr wage)
        </labl>
        <catStat type="freq">
          334
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          non-manual (irr wage)
        </labl>
        <catStat type="freq">
          36
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          small trader/business
        </labl>
        <catStat type="freq">
          302
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          unskilled manual (reg wage)
        </labl>
        <catStat type="freq">
          168
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          skilled manual (reg wage)
        </labl>
        <catStat type="freq">
          141
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          non-manual (reg wage)
        </labl>
        <catStat type="freq">
          39
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          professional
        </labl>
        <catStat type="freq">
          633
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6737
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: occuphead [occupation of household head] (table[s]: derived variable)
variable: emphead [employment status of household head] (table[s]: tb_tbx, tb_tbxto2007, tb_tbo, tb_tboto2007)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V36" name="emp_scoreh" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="92" EndPos="92" width="1" RecSegNo="1"/>
      <labl>
        Categorised occ/emp variable of household head (D)
      </labl>
      <qstn>
        <qstnLit>
          Categorised occ/emp variable of household head
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="3"/>
      </valrng>
      <sumStat type="vald">
        6174
      </sumStat>
      <sumStat type="invd">
        6737
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Low
        </labl>
        <catStat type="freq">
          230
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Medium
        </labl>
        <catStat type="freq">
          4661
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          High
        </labl>
        <catStat type="freq">
          1283
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6737
        </catStat>
      </catgry>
      <codInstr>
        variable: occgphead [categorised occupation of household head] (table[s]: derived variable)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V37" name="occqualanyh" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="93" EndPos="93" width="1" RecSegNo="1"/>
      <labl>
        Does household head have a formal qualification for main occupation?
      </labl>
      <qstn>
        <qstnLit>
          Does household head have a formal qualification for main occupation?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        2003
      </sumStat>
      <sumStat type="invd">
        10908
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1814
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          189
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          395
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10513
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V38" name="indhead" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="94" EndPos="96" width="3" RecSegNo="1"/>
      <labl>
        describe industry (if not in agriculture/ forestry) [of household head]
      </labl>
      <qstn>
        <qstnLit>
          describe industry (if not in agriculture/ forestry) [of household head]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="999"/>
      </valrng>
      <invalrng>
        <item VALUE="999"/>
      </invalrng>
      <sumStat type="vald">
        2060
      </sumStat>
      <sumStat type="invd">
        10851
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <catStat type="freq">
          26
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Agriculture &amp; forestry
        </labl>
        <catStat type="freq">
          1361
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Fishing
        </labl>
        <catStat type="freq">
          78
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Mining
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Primary producers not classified
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Food processing &amp; sales
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Drink processing &amp; sales
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Building &amp; road construction
        </labl>
        <catStat type="freq">
          52
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          32
        </catValu>
        <labl>
          Mining &amp; industrial manufacturing
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          Workshop &amp; domestic production
        </labl>
        <catStat type="freq">
          43
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          37
        </catValu>
        <labl>
          Not classified
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          39
        </catValu>
        <labl>
          Manufacturing construction and repair not classified
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          40
        </catValu>
        <labl>
          <![CDATA[Transport  & utilities]]>
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          <![CDATA[Transport  & utilities water]]>
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          <![CDATA[Transport  & utilities gas]]>
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          43
        </catValu>
        <labl>
          Electricity
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          44
        </catValu>
        <labl>
          Telephone
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          45
        </catValu>
        <labl>
          Transport
        </labl>
        <catStat type="freq">
          27
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Transport and utilities not classified
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Petty, retail &amp; wholesale
        </labl>
        <catStat type="freq">
          119
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Retail
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Wholesale
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Financial
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Trade not classified
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          61
        </catValu>
        <labl>
          Health
        </labl>
        <catStat type="freq">
          37
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          62
        </catValu>
        <labl>
          Personal &amp; domestic
        </labl>
        <catStat type="freq">
          15
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          63
        </catValu>
        <labl>
          Government &amp; security
        </labl>
        <catStat type="freq">
          112
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          64
        </catValu>
        <labl>
          Education &amp; pastoral
        </labl>
        <catStat type="freq">
          75
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          65
        </catValu>
        <labl>
          Information &amp; entertainment
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          69
        </catValu>
        <labl>
          Public service not classified
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          70
        </catValu>
        <labl>
          No sub-category available
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          90
        </catValu>
        <labl>
          Unclassifiable no sub-category available
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Unclassifiable no information
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          26
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10825
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V39" name="trainedh" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="97" EndPos="97" width="1" RecSegNo="1"/>
      <labl>
        Whether household head is formally trained in occupation (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether household head is formally trained in occupation
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        1679
      </sumStat>
      <sumStat type="invd">
        11232
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1443
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          236
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          241
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10991
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: trainedh [head formally trained] (table[s]: tb_tbxto2007)
variable: trainh [head formally trained] (table[s]: tb_tboto2007)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V40" name="empnumh" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="98" EndPos="99" width="2" RecSegNo="1"/>
      <labl>
        How many people does he/she employ in your main occupation? [household head]
      </labl>
      <qstn>
        <qstnLit>
          How many people does he/she employ in your main occupation? [household head]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        1516
      </sumStat>
      <sumStat type="invd">
        11395
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V41" name="mothvita" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="100" EndPos="100" width="1" RecSegNo="1"/>
      <labl>
        whether mother is still alive
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Is your  mother is still alive?]]>
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        4582
      </sumStat>
      <sumStat type="invd">
        8329
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Alive
        </labl>
        <catStat type="freq">
          2617
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Dead
        </labl>
        <catStat type="freq">
          1965
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          63
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8266
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V42" name="mothdyr" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="101" EndPos="104" width="4" RecSegNo="1"/>
      <labl>
        year of mother's death (D)
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[If (mothvita) is no,  year of mother's death]]>
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1930" max="9999"/>
      </valrng>
      <invalrng>
        <item VALUE="9999"/>
      </invalrng>
      <sumStat type="vald">
        1855
      </sumStat>
      <sumStat type="invd">
        11056
      </sumStat>
      <catgry>
        <catValu>
          9998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: mothdest [decade estimate of mother's death] (table[s]: tb_tbx, tb_tbo)
variable: mothdyr [year of mother's death] (table[s]: tb_tbx, tb_tbo)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V43" name="mothdyrx" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="105" EndPos="105" width="1" RecSegNo="1"/>
      <labl>
        whether year of mother's death is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Is the year of mother's death is an estimate ?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        1855
      </sumStat>
      <sumStat type="invd">
        11056
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1830
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          25
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11056
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: mothdest [decade estimate of mother's death] (table[s]: tb_tbx, tb_tbo)
variable: mothdyr [year of mother's death] (table[s]: tb_tbx, tb_tbo)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V44" name="fathvita" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="106" EndPos="106" width="1" RecSegNo="1"/>
      <labl>
        whether father is still alive
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Is your  father is still alive?]]>
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        4555
      </sumStat>
      <sumStat type="invd">
        8356
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Alive
        </labl>
        <catStat type="freq">
          1711
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Dead
        </labl>
        <catStat type="freq">
          2844
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          90
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8266
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V45" name="fathdyr" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="107" EndPos="110" width="4" RecSegNo="1"/>
      <labl>
        year of father's death (D)
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[If (fathvita) is no,  year of mother's death]]>
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1930" max="9999"/>
      </valrng>
      <invalrng>
        <item VALUE="9999"/>
      </invalrng>
      <sumStat type="vald">
        2679
      </sumStat>
      <sumStat type="invd">
        10232
      </sumStat>
      <catgry>
        <catValu>
          9998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: fathdest [decade estimate of father's death] (table[s]: tb_tbx, tb_tbo)
variable: fathdyr [year of father's death] (table[s]: tb_tbx, tb_tbo)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V46" name="fathdyrx" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="111" EndPos="111" width="1" RecSegNo="1"/>
      <labl>
        whether year of father's death is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Is the year of fatherr's death is an estimate ?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        2844
      </sumStat>
      <sumStat type="invd">
        10067
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2807
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          37
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10067
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: fathdest [decade estimate of father's death] (table[s]: tb_tbx, tb_tbo)
variable: fathdyr [year of father's death] (table[s]: tb_tbx, tb_tbo)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V47" name="pretrttb" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="112" EndPos="112" width="1" RecSegNo="1"/>
      <labl>
        Ever treated for TB previously (D)
      </labl>
      <qstn>
        <qstnLit>
          Ever treated for TB previously?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        12529
      </sumStat>
      <sumStat type="invd">
        382
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          11452
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1077
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          213
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          169
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: pretrttb [previous TB treatment] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: mohregdate [TB treatment registration date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatdate [treatment start date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V48" name="pretrtyear" files="F1" dcml="0" intrvl="contin">
      <location StartPos="113" EndPos="116" width="4" RecSegNo="1"/>
      <labl>
        Year previously treated for TB (D)
      </labl>
      <qstn>
        <qstnLit>
          If (pretrttb) is yes, Year previously treated for TB
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1959" max="2017"/>
      </valrng>
      <sumStat type="vald">
        1002
      </sumStat>
      <sumStat type="invd">
        11909
      </sumStat>
      <codInstr>
        <![CDATA[variable: pretrtest [previous TB treatment] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: pretrtyear [previous TB treatment year] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: mohregdate [TB treatment registration date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatdate [treatment start date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V49" name="pretrtyearx" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="117" EndPos="117" width="1" RecSegNo="1"/>
      <labl>
        Whether year of past TB treatment is estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          Is the year of past TB treatment is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        1002
      </sumStat>
      <sumStat type="invd">
        11909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          988
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: pretrtest [previous TB treatment] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: pretrtyear [previous TB treatment year] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V50" name="pretrtpl" files="F1" intrvl="discrete">
      <location StartPos="118" EndPos="121" width="4" RecSegNo="1"/>
      <labl>
        Where were you treated? [in the past for TB]
      </labl>
      <qstn>
        <qstnLit>
          Where were you treated? [in the past for TB]?
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1015
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V51" name="tbtype" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="122" EndPos="122" width="1" RecSegNo="1"/>
      <labl>
        Type of TB (from tbcpu combined file) (D)
      </labl>
      <qstn>
        <qstnLit>
          Type of TB (from tbcpu combined file)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        9091
      </sumStat>
      <sumStat type="invd">
        3820
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Pulmonary only
        </labl>
        <catStat type="freq">
          7236
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Lymph node only
        </labl>
        <catStat type="freq">
          419
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Extra pulmonary only
        </labl>
        <catStat type="freq">
          784
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Pulmonary &amp; lymph node
        </labl>
        <catStat type="freq">
          103
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Pulmonary &amp; extra pulmonary
        </labl>
        <catStat type="freq">
          153
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Lymph node &amp; extra pulmonary
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          All three
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          362
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3820
        </catStat>
      </catgry>
      <codInstr>
        variable: tbtype (table[s]: tbcpu [derived table])
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V52" name="tbcpu" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="123" EndPos="123" width="1" RecSegNo="1"/>
      <labl>
        Whether TB is confirmed, probably or unknown (from tbcpu combined file) (D)
      </labl>
      <qstn>
        <qstnLit>
          Is TB confirmed, probably or unknown (from tbcpu combined file)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="3"/>
      </valrng>
      <sumStat type="vald">
        8729
      </sumStat>
      <sumStat type="invd">
        4182
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Confirmed
        </labl>
        <catStat type="freq">
          3043
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Probable
        </labl>
        <catStat type="freq">
          2095
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Unlikely
        </labl>
        <catStat type="freq">
          3591
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          4182
        </catStat>
      </catgry>
      <codInstr>
        variable: tbcpu (table[s]: tbcpu [derived table])
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V53" name="mic_resH" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="124" EndPos="124" width="1" RecSegNo="1"/>
      <labl>
        Highest microscopy result (from tbcpu combined file) (D)
      </labl>
      <qstn>
        <qstnLit>
          Highest microscopy result (from tbcpu combined file)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        4222
      </sumStat>
      <sumStat type="invd">
        8689
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          4222
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8689
        </catStat>
      </catgry>
      <codInstr>
        variable: mic_res [microscopy result] (table[s]: tbcpu [derived table])
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V54" name="cultposever" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="125" EndPos="125" width="1" RecSegNo="1"/>
      <labl>
        at least one positive culture during episode (from tbcpu combined file) (D)
      </labl>
      <qstn>
        <qstnLit>
          at least one positive culture during episode (from tbcpu combined file)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        9091
      </sumStat>
      <sumStat type="invd">
        3820
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          5341
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          3750
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3820
        </catStat>
      </catgry>
      <codInstr>
        variable: pos_cult [culture positive] (table[s]: tbcpu [derived table])
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V55" name="outcome_cpu" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="126" EndPos="126" width="1" RecSegNo="1"/>
      <labl>
        Outcome (from tbcpu combined file) (D)
      </labl>
      <qstn>
        <qstnLit>
          Outcome (from tbcpu combined file)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        8926
      </sumStat>
      <sumStat type="invd">
        3985
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Treatment completed
        </labl>
        <catStat type="freq">
          5561
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Died
        </labl>
        <catStat type="freq">
          2190
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Transfered out
        </labl>
        <catStat type="freq">
          361
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Failure
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Lost/defaulted
        </labl>
        <catStat type="freq">
          749
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          46
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3953
        </catStat>
      </catgry>
      <codInstr>
        variable: outcome_cpu (table[s]: tbcpu [derived table])
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V56" name="starteps" files="F1" intrvl="discrete">
      <location StartPos="127" EndPos="136" width="10" RecSegNo="1"/>
      <labl>
        Start of TB episode (from tbcpu combined file) (D)
      </labl>
      <qstn>
        <qstnLit>
          Start of TB episode (from tbcpu combined file)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        9091
      </sumStat>
      <codInstr>
        variable: starteps (table[s]: tbcpu [derived table])
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V57" name="fineps" files="F1" intrvl="discrete">
      <location StartPos="137" EndPos="146" width="10" RecSegNo="1"/>
      <labl>
        End of TB episode (from tbcpu combined file) (D)
      </labl>
      <qstn>
        <qstnLit>
          End of TB episode (from tbcpu combined file)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        9091
      </sumStat>
      <codInstr>
        variable: fineps (table[s]: tbcpu [derived table])
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V58" name="treatstartdate" files="F1" intrvl="discrete">
      <location StartPos="147" EndPos="156" width="10" RecSegNo="1"/>
      <labl>
        Start date of treatment (D)
      </labl>
      <qstn>
        <qstnLit>
          Start date of treatment
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        8484
      </sumStat>
      <codInstr>
        <![CDATA[variable: mohregdate [TB treatment registration date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatdate [treatment start date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V59" name="treatstartdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="157" EndPos="157" width="1" RecSegNo="1"/>
      <labl>
        Whether treatstartdate is estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether treatstartdate is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        2620
      </sumStat>
      <sumStat type="invd">
        10291
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          2597
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          23
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10291
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: mohregdatex [registration date is estimated] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: mohregdate [TB treatment registration date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatdate [treatment start date] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V60" name="illdate" files="F1" intrvl="discrete">
      <location StartPos="158" EndPos="167" width="10" RecSegNo="1"/>
      <labl>
        Illness onset date (D)
      </labl>
      <qstn>
        <qstnLit>
          Illness onset date
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        8257
      </sumStat>
      <codInstr>
        <![CDATA[variable: illwks [number of weeks ill] (table[s]: tb_tbx, tb_tbxto2007)
variable: illmm [illness onset month] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: illyear [illness onset year] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: illest [illness onset decade estimate] (table[s]: tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V61" name="illdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="168" EndPos="168" width="1" RecSegNo="1"/>
      <labl>
        if illness onset date is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          if illness onset date is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        8257
      </sumStat>
      <sumStat type="invd">
        4654
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          7520
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          736
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          4654
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: illmm [illness onset month] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: illyear [illness onset year] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: illest [illness onset decade estimate] (table[s]: tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V62" name="certtime" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="169" EndPos="169" width="1" RecSegNo="1"/>
      <labl>
        Certainty of illness timing (D)
      </labl>
      <qstn>
        <qstnLit>
          Certainty of illness timing
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        2847
      </sumStat>
      <sumStat type="invd">
        10064
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Unsure/unlikely
        </labl>
        <catStat type="freq">
          243
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Certain
        </labl>
        <catStat type="freq">
          2291
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Probable
        </labl>
        <catStat type="freq">
          313
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          36
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10028
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: illest [illness onset decade estimate] (table[s]: tb_tbxto2007, tbold_part1/2)
variable: certtime [certainty of illness timing] (table[s]: tb_tbx)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V63" name="cough" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="170" EndPos="170" width="1" RecSegNo="1"/>
      <labl>
        Have you been coughing?
      </labl>
      <qstn>
        <qstnLit>
          Have you been coughing?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        6723
      </sumStat>
      <sumStat type="invd">
        6188
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2798
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          3925
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          9
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6179
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V64" name="coughdate" files="F1" intrvl="discrete">
      <location StartPos="171" EndPos="180" width="10" RecSegNo="1"/>
      <labl>
        Coughing onset date (D)
      </labl>
      <qstn>
        <qstnLit>
          If (cough) is yes, Coughing onset date
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        8694
      </sumStat>
      <sumStat type="min">
        1959-06-15
      </sumStat>
      <sumStat type="max">
        2018-06-15
      </sumStat>
      <codInstr>
        <![CDATA[variable: coughest [cough onset decade estimate] (table[s]: tbold_part1/2)
variable: couweeks [number of weeks coughing] (table[s]: tb_tbx, tb_tbxto2007, tb_tbo, tb_tboto2007)
variable: coughmm [cough onset month] (table[s]: tb_tbx, tb_tbxto2007, tb_tbo, tb_tboto2007)
variable: coughyy [cough onset year] (table[s]: tb_tbx, tb_tbxto2007, tb_tbo, tb_tboto2007)
variable: coughyear [cough onset year] (table[s]: tbold_part1/2)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V65" name="coughdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="181" EndPos="181" width="1" RecSegNo="1"/>
      <labl>
        if coughing onset date is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          if coughing onset date is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        8295
      </sumStat>
      <sumStat type="invd">
        4616
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          4737
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          3401
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          157
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          4616
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: coughest [cough onset decade estimate] (table[s]: tbold_part1/2)
variable: coughmm [cough onset month] (table[s]: tb_tbx, tb_tbxto2007, tb_tbo, tb_tboto2007)
variable: coughyy [cough onset year] (table[s]: tb_tbx, tb_tbxto2007, tb_tbo, tb_tboto2007)
variable: coughyear [cough onset year] (table[s]: tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V66" name="swgl" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="182" EndPos="182" width="1" RecSegNo="1"/>
      <labl>
        Have you had swollen glands?
      </labl>
      <qstn>
        <qstnLit>
          Have you had swollen glands?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3683
      </sumStat>
      <sumStat type="invd">
        9228
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          3404
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          278
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          288
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8940
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V67" name="swgldate" files="F1" intrvl="discrete">
      <location StartPos="183" EndPos="192" width="10" RecSegNo="1"/>
      <labl>
        Date of onset of swollen glands (D)
      </labl>
      <qstn>
        <qstnLit>
          Date of onset of swollen glands
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        278
      </sumStat>
      <codInstr>
        <![CDATA[variable: swglwks [number of weeks swollen glands] (table[s]: tb_tbx, tb_tbxto2007)
variable: swglmm [swollen glands onset month] (table[s]: tb_tbx, tb_tbxto2007)
variable: swglyear [swollen glands onset year] (table[s]: tb_tbx, tb_tbxto2007)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V68" name="swgldatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="193" EndPos="193" width="1" RecSegNo="1"/>
      <labl>
        whether onset date of swollen glands is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          whether onset date of swollen glands is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        278
      </sumStat>
      <sumStat type="invd">
        12633
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          268
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12633
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: swglmm [swollen glands onset month] (table[s]: tb_tbx, tb_tbxto2007)
variable: swglyear [swollen glands onset year] (table[s]: tb_tbx, tb_tbxto2007)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V69" name="firstdate" files="F1" intrvl="discrete">
      <location StartPos="194" EndPos="203" width="10" RecSegNo="1"/>
      <labl>
        Date first seeing health practitioner for illness (D)
      </labl>
      <qstn>
        <qstnLit>
          Date first seeing health practitioner for illness
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5817
      </sumStat>
      <codInstr>
        <![CDATA[variable: delaywks [number of weeks delay seeking healthcare] (table[s]: tb_tbx, tb_tbxto2007)
variable: firstdate [first date seeing health care] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V70" name="firstdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="204" EndPos="204" width="1" RecSegNo="1"/>
      <labl>
        Whether firsthpdate is estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether firsthpdate is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        5577
      </sumStat>
      <sumStat type="invd">
        7334
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          2190
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          3293
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          94
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7334
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: delaywks [number of weeks delay seeking healthcare] (table[s]: tb_tbx, tb_tbxto2007)
variable: firstdatex [first date seeing health care is estimate] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V71" name="practype" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="205" EndPos="205" width="1" RecSegNo="1"/>
      <labl>
        Which type of health practitioner did you go to first?
      </labl>
      <qstn>
        <qstnLit>
          Which type of health practitioner did you go to first?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        5754
      </sumStat>
      <sumStat type="invd">
        7157
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Traditional healer (ng'anga)
        </labl>
        <catStat type="freq">
          328
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Health centre
        </labl>
        <catStat type="freq">
          2034
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Private clinic
        </labl>
        <catStat type="freq">
          749
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Hospital
        </labl>
        <catStat type="freq">
          2528
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          KPS
        </labl>
        <catStat type="freq">
          115
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          267
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6890
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V72" name="hcdate" files="F1" intrvl="discrete">
      <location StartPos="206" EndPos="215" width="10" RecSegNo="1"/>
      <labl>
        if first traditional healer: When first go to a health centre/clinic/hospital?
      </labl>
      <qstn>
        <qstnLit>
          if first traditional healer: When first go to a health centre/clinic/hospital?
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        325
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V73" name="hcdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="216" EndPos="216" width="1" RecSegNo="1"/>
      <labl>
        Whether hcdate is estimated
      </labl>
      <qstn>
        <qstnLit>
          Whether hcdate is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        228
      </sumStat>
      <sumStat type="invd">
        12683
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          226
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12683
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V74" name="suggestb" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="217" EndPos="218" width="2" RecSegNo="1"/>
      <labl>
        Who first suggested you might have TB?
      </labl>
      <qstn>
        <qstnLit>
          Who first suggested you might have TB?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        5810
      </sumStat>
      <sumStat type="invd">
        7101
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Self
        </labl>
        <catStat type="freq">
          1265
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Family
        </labl>
        <catStat type="freq">
          957
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Friends
        </labl>
        <catStat type="freq">
          137
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Neighbours
        </labl>
        <catStat type="freq">
          53
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Traditional healer
        </labl>
        <catStat type="freq">
          21
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Health centre
        </labl>
        <catStat type="freq">
          2138
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          KPS staff
        </labl>
        <catStat type="freq">
          1095
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Don't know/can't recall
        </labl>
        <catStat type="freq">
          70
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          74
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7088
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V75" name="howadmit" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="219" EndPos="220" width="2" RecSegNo="1"/>
      <labl>
        How were you referred to hospital?
      </labl>
      <qstn>
        <qstnLit>
          How were you referred to hospital?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        5716
      </sumStat>
      <sumStat type="invd">
        7195
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Direct
        </labl>
        <catStat type="freq">
          1369
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Via KPS at H/C etc.
        </labl>
        <catStat type="freq">
          2381
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Via H/C not KPS
        </labl>
        <catStat type="freq">
          1412
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Private clinic not KPS
        </labl>
        <catStat type="freq">
          125
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Via traditional healer
        </labl>
        <catStat type="freq">
          17
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Via KPS not at H/C
        </labl>
        <catStat type="freq">
          66
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Via KPS doctor
        </labl>
        <catStat type="freq">
          180
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Transfer in
        </labl>
        <catStat type="freq">
          166
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          89
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7106
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V76" name="bedridden" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="221" EndPos="221" width="1" RecSegNo="1"/>
      <labl>
        Have you at any point been bedridden with this illness?
      </labl>
      <qstn>
        <qstnLit>
          Have you at any point been bedridden with this illness?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3957
      </sumStat>
      <sumStat type="invd">
        8954
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          3281
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          676
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8940
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V77" name="tbtype1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="222" EndPos="223" width="2" RecSegNo="1"/>
      <labl>
        Site of TB [1]
      </labl>
      <qstn>
        <qstnLit>
          Site of TB
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <sumStat type="vald">
        9090
      </sumStat>
      <sumStat type="invd">
        3821
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          332
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Lungs
        </labl>
        <catStat type="freq">
          6972
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Pleura
        </labl>
        <catStat type="freq">
          495
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Intrathoracic Lymph
        </labl>
        <catStat type="freq">
          35
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Other Lymph Node
        </labl>
        <catStat type="freq">
          398
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Skin (lupus vulgaris)
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Meningitis
        </labl>
        <catStat type="freq">
          50
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Miliary
        </labl>
        <catStat type="freq">
          104
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Abdominal
        </labl>
        <catStat type="freq">
          136
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Bone and joint
        </labl>
        <catStat type="freq">
          194
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Clinical trial
        </labl>
        <catStat type="freq">
          65
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Child contact
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Reactive mantoux only
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          unknown
        </labl>
        <catStat type="freq">
          298
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3821
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V78" name="tbtype2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="224" EndPos="225" width="2" RecSegNo="1"/>
      <labl>
        Site of TB [2]
      </labl>
      <qstn>
        <qstnLit>
          Site of TB
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        306
      </sumStat>
      <sumStat type="invd">
        12605
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          69
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Lungs
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Pleura
        </labl>
        <catStat type="freq">
          93
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Intrathoracic Lymph
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Other Lymph Node
        </labl>
        <catStat type="freq">
          42
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Skin (lupus vulgaris)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Meningitis
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Miliary
        </labl>
        <catStat type="freq">
          35
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Abdominal
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Bone and joint
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Clinical trial
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Child contact
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Reactive mantoux only
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          unknown
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12605
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V79" name="tbtype3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="226" EndPos="227" width="2" RecSegNo="1"/>
      <labl>
        Site of TB [3]
      </labl>
      <qstn>
        <qstnLit>
          Site of TB
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        6
      </sumStat>
      <sumStat type="invd">
        12905
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Lungs
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Pleura
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Intrathoracic Lymph
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Other Lymph Node
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Skin (lupus vulgaris)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Meningitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Miliary
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Abdominal
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Bone and joint
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Clinical trial
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Child contact
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Reactive mantoux only
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12905
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V80" name="smeacult" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="228" EndPos="228" width="1" RecSegNo="1"/>
      <labl>
        Smear positivity
      </labl>
      <qstn>
        <qstnLit>
          Smear positivity
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        2758
      </sumStat>
      <sumStat type="invd">
        10153
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Smear postive by KPS
        </labl>
        <catStat type="freq">
          1292
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Smear positive by KDH
        </labl>
        <catStat type="freq">
          203
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Culture positive by KPS
        </labl>
        <catStat type="freq">
          154
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Unknown cult, smear neg
        </labl>
        <catStat type="freq">
          461
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          648
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10153
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V81" name="smeacult_old" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="229" EndPos="229" width="1" RecSegNo="1"/>
      <labl>
        Smear positivity (D)
      </labl>
      <qstn>
        <qstnLit>
          Smear positivity
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3948
      </sumStat>
      <sumStat type="invd">
        8963
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Smear
        </labl>
        <catStat type="freq">
          2143
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Culture
        </labl>
        <catStat type="freq">
          278
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          1296
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          231
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          136
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8827
        </catStat>
      </catgry>
      <codInstr>
        variable: smeacult (table[s]: tb_tbx, tb_tbxto2007)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V82" name="mic_resD" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="230" EndPos="230" width="1" RecSegNo="1"/>
      <labl>
        Microscopy result at diagnosis (D)
      </labl>
      <qstn>
        <qstnLit>
          Microscopy result at diagnosis
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        5726
      </sumStat>
      <sumStat type="invd">
        7185
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          1947
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          3779
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7185
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_microscopy)
variable: spectype [specimen type] (table[s]: tb_specimen)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: mic_res [microscopy result] (table[s]: tb_microscopy)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V83" name="mic_res2m" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="231" EndPos="231" width="1" RecSegNo="1"/>
      <labl>
        Microscopy result 2 months after diagnosis (D)
      </labl>
      <qstn>
        <qstnLit>
          Microscopy result 2 months after diagnosis
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        2051
      </sumStat>
      <sumStat type="invd">
        10860
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          1704
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          347
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10860
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_microscopy)
variable: spectype [specimen type] (table[s]: tb_specimen)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: mic_res [microscopy result] (table[s]: tb_microscopy)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V84" name="mic_resC" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="232" EndPos="232" width="1" RecSegNo="1"/>
      <labl>
        Microscopy result within 2 months of treatment completion (D)
      </labl>
      <qstn>
        <qstnLit>
          Microscopy result within 2 months of treatment completion
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        2387
      </sumStat>
      <sumStat type="invd">
        10524
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          2354
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          33
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10524
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_microscopy)
variable: spectype [specimen type] (table[s]: tb_specimen)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: mic_res [microscopy result] (table[s]: tb_microscopy)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V85" name="cult_resD" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="233" EndPos="233" width="1" RecSegNo="1"/>
      <labl>
        Culture result at diagnosis (D)
      </labl>
      <qstn>
        <qstnLit>
          Culture result at diagnosis
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        5402
      </sumStat>
      <sumStat type="invd">
        7509
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          2496
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          2906
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7509
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: identif [culture result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V86" name="cult_res2m" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="234" EndPos="234" width="1" RecSegNo="1"/>
      <labl>
        Culture result 2 months after diagnosis (D)
      </labl>
      <qstn>
        <qstnLit>
          Culture result 2 months after diagnosis
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        1075
      </sumStat>
      <sumStat type="invd">
        11836
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          1037
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          38
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11836
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: identif [culture result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V87" name="cult_resC" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="235" EndPos="235" width="1" RecSegNo="1"/>
      <labl>
        Culture result within 2 months of treatment completion (D)
      </labl>
      <qstn>
        <qstnLit>
          Culture result within 2 months of treatment completion
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        1890
      </sumStat>
      <sumStat type="invd">
        11021
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          1868
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          22
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11021
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: identif [culture result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V88" name="drugres_s" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="236" EndPos="236" width="1" RecSegNo="1"/>
      <labl>
        Whether patient was resistant to streptomycin at treatment start (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether patient was resistant to streptomycin at treatment start
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1046
      </sumStat>
      <sumStat type="invd">
        11865
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          958
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          88
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11865
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: s [streptomycin resistance result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V89" name="drugres_i" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="237" EndPos="237" width="1" RecSegNo="1"/>
      <labl>
        Whether patient was resistant to isoniazid at treatment start (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether patient was resistant to isoniazid at treatment start
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2774
      </sumStat>
      <sumStat type="invd">
        10137
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2556
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          218
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10137
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: i [isoniazid resistance result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V90" name="drugres_r" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="238" EndPos="238" width="1" RecSegNo="1"/>
      <labl>
        Whether patient was resistant to rifampicin at treatment start (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether patient was resistant to rifampicin at treatment start
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2777
      </sumStat>
      <sumStat type="invd">
        10134
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2749
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          28
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10134
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: r [rifampicin resistance result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V91" name="drugres_e" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="239" EndPos="239" width="1" RecSegNo="1"/>
      <labl>
        Whether patient was resistant to ethambutol at treatment start (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether patient was resistant to ethambutol at treatment start
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1141
      </sumStat>
      <sumStat type="invd">
        11770
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1130
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11770
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: e [ethambutol resistance result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V92" name="drugres_p" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="240" EndPos="240" width="1" RecSegNo="1"/>
      <labl>
        Whether patient was resistant to pyrazinamide at treatment start (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether patient was resistant to pyrazinamide at treatment start
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        447
      </sumStat>
      <sumStat type="invd">
        12464
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          434
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12464
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: p [pyrazinamide resistance result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V93" name="drugres_c" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="241" EndPos="241" width="1" RecSegNo="1"/>
      <labl>
        Whether patient was resistant to ciprofloxacin at treatment start (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether patient was resistant to ciprofloxacin at treatment start
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        69
      </sumStat>
      <sumStat type="invd">
        12842
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          69
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12842
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_culture)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: c [ciprofloxacin resistance result] (table[s]: tb_culture)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V94" name="biopdate" files="F1" intrvl="discrete">
      <location StartPos="242" EndPos="251" width="10" RecSegNo="1"/>
      <labl>
        Date of biopsy (D)
      </labl>
      <qstn>
        <qstnLit>
          Date of biopsy
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        202
      </sumStat>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_biopsy)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V95" name="bioptissue" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="252" EndPos="252" width="1" RecSegNo="1"/>
      <labl>
        Tissue biopsied (D)
      </labl>
      <qstn>
        <qstnLit>
          Tissue biopsied
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        202
      </sumStat>
      <sumStat type="invd">
        12709
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Breast lump
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Lymph node
        </labl>
        <catStat type="freq">
          192
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Salivary gland
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Skin
        </labl>
        <catStat type="freq">
          9
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          ???
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12709
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_biopsy)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: tissue [tissue biopsied] (table[s]: tb_biopsy)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V96" name="biopdisease" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="253" EndPos="254" width="2" RecSegNo="1"/>
      <labl>
        Disease identified through biopsy (D)
      </labl>
      <qstn>
        <qstnLit>
          Disease identified through biopsy
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        188
      </sumStat>
      <sumStat type="invd">
        12723
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Actrophy
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Adoema
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Adenocarcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Benign epidermoid cyst
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Benign fibroadenoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Eosb reactive
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Fibrosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Hodgkin's lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Kaposi sarcoma
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Metastatic carcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Non hodgkin lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Pyogenic granulomas
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          Plexiform neurofibroma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Reactive hyperplasia
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          16
        </catValu>
        <labl>
          Subcutaneous tissue
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          17
        </catValu>
        <labl>
          TB
        </labl>
        <catStat type="freq">
          182
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          18
        </catValu>
        <labl>
          ???
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          88
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Inflammation
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12722
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_biopsy)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: disease [biopsy result] (table[s]: tb_biopsy)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V97" name="biopcertainty" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="255" EndPos="255" width="1" RecSegNo="1"/>
      <labl>
        Certainty of biopsy diagnosis (D)
      </labl>
      <qstn>
        <qstnLit>
          Certainty of biopsy diagnosis
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        201
      </sumStat>
      <sumStat type="invd">
        12710
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          uncertain
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          confirmed beyond reasonable doubt
        </labl>
        <catStat type="freq">
          164
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          suggestive but not diagnostic / pathognomonic
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          pathological and possibly leprosy
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          pathological bur non-specific
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          normal tissue
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          pathological and indicative of some other disease
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          other/ unforeseen circumstances
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12710
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: tblabno [lab number] (table[s]: tb_specimen, tb_biopsy)
variable: datecoll [specimen collection date] (table[s]: tb_specimen)
variable: certainty [certainty of biopsy result] (table[s]: tb_biopsy)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V98" name="xpert" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="256" EndPos="256" width="1" RecSegNo="1"/>
      <labl>
        Was Xpert MTB/RIF done?
      </labl>
      <qstn>
        <qstnLit>
          Was Xpert MTB/RIF done?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        908
      </sumStat>
      <sumStat type="invd">
        12003
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          747
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          161
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          44
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11959
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V99" name="indication" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="257" EndPos="257" width="1" RecSegNo="1"/>
      <labl>
        What was the indication for doing Xpert MTB/RIF?
      </labl>
      <qstn>
        <qstnLit>
          What was the indication for doing Xpert MTB/RIF?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        155
      </sumStat>
      <sumStat type="invd">
        12756
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          <![CDATA[Retreatment  case/MDR suspect]]>
        </labl>
        <catStat type="freq">
          34
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          TB suspect-Hospitalized
        </labl>
        <catStat type="freq">
          38
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          TB suspect-New
        </labl>
        <catStat type="freq">
          78
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12750
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V100" name="mtb" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="258" EndPos="258" width="1" RecSegNo="1"/>
      <labl>
        What was the result of Xpert MTB?
      </labl>
      <qstn>
        <qstnLit>
          What was the result of Xpert MTB?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        158
      </sumStat>
      <sumStat type="invd">
        12753
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          MTB neg
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          MTB pos
        </labl>
        <catStat type="freq">
          126
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12750
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V101" name="rif" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="259" EndPos="259" width="1" RecSegNo="1"/>
      <labl>
        What was the result of Xpert RIF?
      </labl>
      <qstn>
        <qstnLit>
          What was the result of Xpert RIF?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        121
      </sumStat>
      <sumStat type="invd">
        12790
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          RIF not detected
        </labl>
        <catStat type="freq">
          105
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          RIF detected
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          40
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12750
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V102" name="cxr" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="260" EndPos="260" width="1" RecSegNo="1"/>
      <labl>
        Was chest x-ray done?
      </labl>
      <qstn>
        <qstnLit>
          Was chest x-ray done?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        2594
      </sumStat>
      <sumStat type="invd">
        10317
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1489
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1105
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          162
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10155
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V103" name="cxrdiag" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="261" EndPos="261" width="1" RecSegNo="1"/>
      <labl>
        Was it diagnostic of TB?
      </labl>
      <qstn>
        <qstnLit>
          Was it diagnostic of TB?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        1074
      </sumStat>
      <sumStat type="invd">
        11837
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          114
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          960
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11805
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V104" name="lymphhis" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="262" EndPos="262" width="1" RecSegNo="1"/>
      <labl>
        If lymphnode TB only, is diagnosis confirmed by histology?
      </labl>
      <qstn>
        <qstnLit>
          If lymphnode TB only, is diagnosis confirmed by histology?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        163
      </sumStat>
      <sumStat type="invd">
        12748
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          143
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12748
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V105" name="hbres" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="263" EndPos="264" width="2" RecSegNo="1"/>
      <labl>
        Hb result
      </labl>
      <qstn>
        <qstnLit>
          Hb result
        </qstnLit>
      </qstn>
      <valrng>
        <range min="5" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        4331
      </sumStat>
      <sumStat type="invd">
        8580
      </sumStat>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <catStat type="freq">
          26
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <catStat type="freq">
          63
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <catStat type="freq">
          136
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <catStat type="freq">
          806
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <catStat type="freq">
          1150
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <catStat type="freq">
          663
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <catStat type="freq">
          305
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <catStat type="freq">
          89
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1087
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <catStat type="freq">
          285
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8295
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V106" name="ictres" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="265" EndPos="265" width="1" RecSegNo="1"/>
      <labl>
        ICT result
      </labl>
      <qstn>
        <qstnLit>
          ICT result
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        10
      </sumStat>
      <sumStat type="invd">
        12901
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Doubtful
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Refused to answer
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Indeterminate
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Not applicable
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1995
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10906
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V107" name="tbclin" files="F1" intrvl="discrete">
      <location StartPos="266" EndPos="271" width="6" RecSegNo="1"/>
      <labl>
        Current TB treatment Centre
      </labl>
      <qstn>
        <qstnLit>
          Current TB treatment Centre
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        435
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V108" name="tidate" files="F1" intrvl="discrete">
      <location StartPos="272" EndPos="281" width="10" RecSegNo="1"/>
      <labl>
        Date registered at current TB treatment centre
      </labl>
      <qstn>
        <qstnLit>
          Date registered at current TB treatment centre
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        435
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V109" name="tbclin1" files="F1" intrvl="discrete">
      <location StartPos="282" EndPos="287" width="6" RecSegNo="1"/>
      <labl>
        Treatment centre registered (at initially)
      </labl>
      <qstn>
        <qstnLit>
          Treatment centre registered (at initially)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        435
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V110" name="treatint" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="288" EndPos="288" width="1" RecSegNo="1"/>
      <labl>
        Anti-tuberculous treatment
      </labl>
      <qstn>
        <qstnLit>
          Anti-tuberculous treatment
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3783
      </sumStat>
      <sumStat type="invd">
        9128
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Short course ( 6 months) (catl)
        </labl>
        <catStat type="freq">
          2894
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Standard course
        </labl>
        <catStat type="freq">
          367
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Extrapulmonary
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Retreament (Cat ll)
        </labl>
        <catStat type="freq">
          394
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          TB Meningitis
        </labl>
        <catStat type="freq">
          52
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          MDR-TB
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          60
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9109
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V111" name="trtstartpl" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="289" EndPos="289" width="1" RecSegNo="1"/>
      <labl>
        Place treatment started
      </labl>
      <qstn>
        <qstnLit>
          Place treatment started
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        2590
      </sumStat>
      <sumStat type="invd">
        10321
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Hospital
        </labl>
        <catStat type="freq">
          1466
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Home
        </labl>
        <catStat type="freq">
          1124
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10302
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V112" name="regintest" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="290" EndPos="290" width="1" RecSegNo="1"/>
      <labl>
        Whether intensive phase drug regimen is estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether intensive phase drug regimen is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        6866
      </sumStat>
      <sumStat type="invd">
        6045
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1704
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          5162
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6045
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: treat_s [received streptomycin in intensive phase] (table[s]: tbold_part1/2)
variable: treat_h [received isoniazid in intensive phase] (table[s]: tbold_part1/2)
variable: treat_r [received rifampicin in intensive phase] (table[s]: tbold_part1/2)
variable: treat_z [received pyrazinamide in intensive phase] (table[s]: tbold_part1/2)
variable: treat_t [received thiacetazone in intensive phase] (table[s]: tbold_part1/2)
variable: treat_e [received ethambutol in intensive phase] (table[s]: tbold_part1/2)
variable: treat_f [received fatol in intensive phase] (table[s]: tbold_part1/2)
variable: treat_rh [received rinfinah in intensive phase] (table[s]: tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V113" name="regcontest" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="291" EndPos="291" width="1" RecSegNo="1"/>
      <labl>
        Whether continuation phase drug regimen is estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether continuation phase drug regimen is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        6841
      </sumStat>
      <sumStat type="invd">
        6070
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1320
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          5521
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6070
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: cptreat_s [received streptomycin in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_h [received isoniazid in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_r [received rifampicin in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_z [received pyrazinamide in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_t [received thiacetazone in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_e [received ethambutol in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_f [received fatol in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_rh [received rinfinah in continuation phase] (table[s]: tbold_part1/2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V114" name="drugreg_int" files="F1" intrvl="discrete">
      <location StartPos="292" EndPos="353" width="62" RecSegNo="1"/>
      <labl>
        drug regimen of intensive phase (D)
      </labl>
      <qstn>
        <qstnLit>
          drug regimen of intensive phase
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        6866
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: treatstartdate [treatment start date] (table[s]: derived variable)
variable: birth_date [date of birth] (table[s]: derived variable)
variable: mic_resD [microscopy result at diagnosis] (table[s]: derived variable)
variable: tbtype1 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype2 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype3 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatint [type of treatment] (table[s]: tb_tbx, tb_tbxto2007)
variable: treat_s [received streptomycin in intensive phase] (table[s]: tbold_part1/2)
variable: treat_h [received isoniazid in intensive phase] (table[s]: tbold_part1/2)
variable: treat_r [received rifampicin in intensive phase] (table[s]: tbold_part1/2)
variable: treat_z [received pyrazinamide in intensive phase] (table[s]: tbold_part1/2)
variable: treat_t [received thiacetazone in intensive phase] (table[s]: tbold_part1/2)
variable: treat_e [received ethambutol in intensive phase] (table[s]: tbold_part1/2)
variable: treat_f [received fatol in intensive phase] (table[s]: tbold_part1/2)
variable: treat_rh [received rinfinah in intensive phase] (table[s]: tbold_part1/2)
variable: regintest [intensive phase regimen estimated] (table[s]: derived variable)]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V115" name="drugreg_cont" files="F1" intrvl="discrete">
      <location StartPos="354" EndPos="407" width="54" RecSegNo="1"/>
      <labl>
        drug regimen of continuation phase (D)
      </labl>
      <qstn>
        <qstnLit>
          drug regimen of continuation phase
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        6841
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: treatstartdate [treatment start date] (table[s]: derived variable)
variable: birth_date [date of birth] (table[s]: derived variable)
variable: mic_resD [microscopy result at diagnosis] (table[s]: derived variable)
variable: tbtype1 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype2 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype3 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatint [type of treatment] (table[s]: tb_tbx, tb_tbxto2007)
variable: cptreat_s [received streptomycin in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_h [received isoniazid in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_r [received rifampicin in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_z [received pyrazinamide in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_t [received thiacetazone in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_e [received ethambutol in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_f [received fatol in continuation phase] (table[s]: tbold_part1/2)
variable: cptreat_rh [received rinfinah in continuation phase] (table[s]: tbold_part1/2)
variable: regcontest [continuation phase regimen estimated] (table[s]: derived variable)]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V116" name="mthreg_int" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="408" EndPos="408" width="1" RecSegNo="1"/>
      <labl>
        length of intensive phase estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          length of intensive phase estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="5"/>
      </valrng>
      <sumStat type="vald">
        6624
      </sumStat>
      <sumStat type="invd">
        6287
      </sumStat>
      <codInstr>
        <![CDATA[variable: treatstartdate [treatment start date] (table[s]: derived variable)
variable: birth_date [date of birth] (table[s]: derived variable)
variable: mic_resD [microscopy result at diagnosis] (table[s]: derived variable)
variable: tbtype1 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype2 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype3 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatint [type of treatment] (table[s]: tb_tbx, tb_tbxto2007)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V117" name="mthreg_cont" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="409" EndPos="410" width="2" RecSegNo="1"/>
      <labl>
        length of continuation phase estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          length of continuation phase estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="4" max="11"/>
      </valrng>
      <sumStat type="vald">
        6624
      </sumStat>
      <sumStat type="invd">
        6287
      </sumStat>
      <codInstr>
        <![CDATA[variable: treatstartdate [treatment start date] (table[s]: derived variable)
variable: birth_date [date of birth] (table[s]: derived variable)
variable: mic_resD [microscopy result at diagnosis] (table[s]: derived variable)
variable: tbtype1 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype2 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: tbtype3 [TB type] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: treatint [type of treatment] (table[s]: tb_tbx, tb_tbxto2007)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V118" name="trtchng" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="411" EndPos="411" width="1" RecSegNo="1"/>
      <labl>
        Was treatment changed during intensive phase?
      </labl>
      <qstn>
        <qstnLit>
          Was treatment changed during intensive phase?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        8643
      </sumStat>
      <sumStat type="invd">
        4268
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          7744
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          163
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <catStat type="freq">
          736
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          84
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          4184
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V119" name="chtrtint_drugs" files="F1" intrvl="discrete">
      <location StartPos="412" EndPos="473" width="62" RecSegNo="1"/>
      <labl>
        Treatment change in intensive phase (D)
      </labl>
      <qstn>
        <qstnLit>
          Treatment change in intensive phase
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        16
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: chtrt_s [treatment change to streptomycin in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: chtrt_h [treatment change to isoniazid in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: chtrt_r [treatment change to rifampicin in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: chtrt_z [treatment change to pyrazinamide in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: chtrt_t [treatment change to thiacetazone in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: chtrt_e [treatment change to ethambutol in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: chtrt_f [treatment change to fatol in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: chtrt_rh [treatment change to rinfinah in intensive phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V120" name="trtchngrsn" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="474" EndPos="474" width="1" RecSegNo="1"/>
      <labl>
        If yes, why? [treatment change in intensive phase]
      </labl>
      <qstn>
        <qstnLit>
          If yes, why? [treatment change in intensive phase]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        19
      </sumStat>
      <sumStat type="invd">
        12892
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Out of stock
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Stevens-Johnson syndrome
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Other drug reaction
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Drug resistance
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Other (specify)
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12892
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V121" name="cptrtchng" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="475" EndPos="475" width="1" RecSegNo="1"/>
      <labl>
        Was treatment changed during continuation phase?
      </labl>
      <qstn>
        <qstnLit>
          Was treatment changed during continuation phase?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        5733
      </sumStat>
      <sumStat type="invd">
        7178
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          4361
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          23
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <catStat type="freq">
          899
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          450
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7178
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V122" name="chtrtcont_drugs" files="F1" intrvl="discrete">
      <location StartPos="476" EndPos="541" width="66" RecSegNo="1"/>
      <labl>
        Treatment change in continuation phase (D)
      </labl>
      <qstn>
        <qstnLit>
          Treatment change in continuation phase
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        20
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: cpchtrt_s [treatment change to streptomycin in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: cpchtrt_h [treatment change to isoniazid in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: cpchtrt_r [treatment change to rifampicin in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: cpchtrt_z [treatment change to pyrazinamide in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: cpchtrt_t [treatment change to thiacetazone in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: cpchtrt_e [treatment change to ethambutol in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: cpchtrt_f [treatment change to fatol in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)
variable: cpchtrt_rh [treatment change to rinfinah in continuation phase] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2)]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V123" name="cpchngrsn" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="542" EndPos="542" width="1" RecSegNo="1"/>
      <labl>
        If yes, why? [treatment change in continuation phase]
      </labl>
      <qstn>
        <qstnLit>
          If yes, why? [treatment change in continuation phase]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        21
      </sumStat>
      <sumStat type="invd">
        12890
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Out of stock
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Stevens-Johnson syndrome
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Other drug reaction
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Drug resistance
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Other (specify)
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12888
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V124" name="idhdhse" files="F1" intrvl="discrete">
      <location StartPos="543" EndPos="549" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of head of household linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of head of household linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        3765
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V125" name="curhse" files="F1" intrvl="discrete">
      <location StartPos="550" EndPos="554" width="5" RecSegNo="1"/>
      <labl>
        current house
      </labl>
      <qstn>
        <qstnLit>
          current house
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5843
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V126" name="curvil" files="F1" intrvl="discrete">
      <location StartPos="555" EndPos="558" width="4" RecSegNo="1"/>
      <labl>
        Current village
      </labl>
      <qstn>
        <qstnLit>
          Current village
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        9122
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V127" name="curghhid" files="F1" intrvl="discrete">
      <location StartPos="559" EndPos="563" width="5" RecSegNo="1"/>
      <labl>
        current ghhid (D)
      </labl>
      <qstn>
        <qstnLit>
          current ghhid
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1952
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: curghhid (table[s]: tb_tbxto2007)
variable: ghhid (table[s]: tb_tboto2007)]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V128" name="crs" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="564" EndPos="564" width="1" RecSegNo="1"/>
      <labl>
        CRS member at time of interview (D)
      </labl>
      <qstn>
        <qstnLit>
          CRS member at time of interview
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="1"/>
      </valrng>
      <sumStat type="vald">
        657
      </sumStat>
      <sumStat type="invd">
        12254
      </sumStat>
      <codInstr>
        <![CDATA[variable: intdate (table[s]: this file)
variable: startdate (table[s]: crs_residency_episodes_clean_nopoly)
variable: stopdate (table[s]: crs_residency_episodes_clean_nopoly)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V129" name="crshse" files="F1" intrvl="discrete">
      <location StartPos="565" EndPos="571" width="7" RecSegNo="1"/>
      <labl>
        CRSHSE id at time of interview (D)
      </labl>
      <qstn>
        <qstnLit>
          CRSHSE id at time of interview
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        657
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: intdate (table[s]: this file)
variable: startdate (table[s]: crs_residency_episodes_clean_nopoly)
variable: stopdate (table[s]: crs_residency_episodes_clean_nopoly)
variable: crshse (table[s]: crs_residency_episodes_clean_nopoly)]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V130" name="curgpspl" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="572" EndPos="572" width="1" RecSegNo="1"/>
      <labl>
        GPS based on village or household (D)
      </labl>
      <qstn>
        <qstnLit>
          GPS based on village or household
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="2"/>
      </valrng>
      <sumStat type="vald">
        10219
      </sumStat>
      <sumStat type="invd">
        2692
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Household
        </labl>
        <catStat type="freq">
          2877
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Village
        </labl>
        <catStat type="freq">
          7342
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          2692
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: gpssdeg [GPS coordinate south degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpssmin [GPS coordinate south minutes] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsedeg [GPS coordinate east degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsemin [GPS coordinate east minutes] (table[s]: val_village, crs_houseall, gp_gphhold)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V131" name="curgpssdeg" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="573" EndPos="574" width="2" RecSegNo="1"/>
      <labl>
        current GPS coord (south degrees) (D)
      </labl>
      <qstn>
        <qstnLit>
          current GPS coord (south degrees)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="10"/>
      </valrng>
      <sumStat type="vald">
        10219
      </sumStat>
      <sumStat type="invd">
        2692
      </sumStat>
      <codInstr>
        <![CDATA[variable: gpssdeg [GPS coordinate south degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpssmin [GPS coordinate south minutes] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsedeg [GPS coordinate east degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsemin [GPS coordinate east minutes] (table[s]: val_village, crs_houseall, gp_gphhold)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V132" name="curgpssmin" files="F1" dcml="0" intrvl="contin">
      <location StartPos="575" EndPos="590" width="16" RecSegNo="1"/>
      <labl>
        current GPS coord (south minute) (D)
      </labl>
      <qstn>
        <qstnLit>
          current GPS coord (south minute)
        </qstnLit>
      </qstn>
      <valrng>
        <range UNITS="REAL" min="0" max="59.9770011901856"/>
      </valrng>
      <sumStat type="vald">
        10219
      </sumStat>
      <sumStat type="invd">
        2692
      </sumStat>
      <codInstr>
        <![CDATA[variable: gpssdeg [GPS coordinate south degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpssmin [GPS coordinate south minutes] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsedeg [GPS coordinate east degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsemin [GPS coordinate east minutes] (table[s]: val_village, crs_houseall, gp_gphhold)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V133" name="curgpsedeg" files="F1" dcml="0" intrvl="contin">
      <location StartPos="591" EndPos="592" width="2" RecSegNo="1"/>
      <labl>
        current GPS coord (east degrees) (D)
      </labl>
      <qstn>
        <qstnLit>
          current GPS coord (east degrees) (
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="34"/>
      </valrng>
      <sumStat type="vald">
        10219
      </sumStat>
      <sumStat type="invd">
        2692
      </sumStat>
      <codInstr>
        <![CDATA[variable: gpssdeg [GPS coordinate south degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpssmin [GPS coordinate south minutes] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsedeg [GPS coordinate east degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsemin [GPS coordinate east minutes] (table[s]: val_village, crs_houseall, gp_gphhold)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V134" name="curgpsemin" files="F1" dcml="0" intrvl="contin">
      <location StartPos="593" EndPos="608" width="16" RecSegNo="1"/>
      <labl>
        current GPS coord (east minutes) (D)
      </labl>
      <qstn>
        <qstnLit>
          current GPS coord (east minutes)
        </qstnLit>
      </qstn>
      <valrng>
        <range UNITS="REAL" min="0" max="59.9679985046387"/>
      </valrng>
      <sumStat type="vald">
        10219
      </sumStat>
      <sumStat type="invd">
        2692
      </sumStat>
      <codInstr>
        <![CDATA[variable: gpssdeg [GPS coordinate south degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpssmin [GPS coordinate south minutes] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsedeg [GPS coordinate east degrees] (table[s]: val_village, crs_houseall, gp_gphhold)
variable: gpsemin [GPS coordinate east minutes] (table[s]: val_village, crs_houseall, gp_gphhold)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V135" name="joindate" files="F1" intrvl="discrete">
      <location StartPos="609" EndPos="618" width="10" RecSegNo="1"/>
      <labl>
        Date of joining/becoming head of current household (D)
      </labl>
      <qstn>
        <qstnLit>
          Date of joining/becoming head of current household
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        8955
      </sumStat>
      <codInstr>
        <![CDATA[variable: joinest [decade estimate of joining household] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: joinmm [month of joining household] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: joinyear [year of joining household] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V136" name="joindatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="619" EndPos="619" width="1" RecSegNo="1"/>
      <labl>
        Whether date of joining current household is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date of joining current household is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        8955
      </sumStat>
      <sumStat type="invd">
        3956
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          3370
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          5401
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          184
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3956
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: joinest [decade estimate of joining household] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: joinmm [month of joining household] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: joinyear [year of joining household] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
gen joindatex=2 if joinyear~=.
replace joindatex=4 if joinmm==. & joinyear~=.
replace joindatex=5 if joinest~=. & joinyear~=.
la val joindatex datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V137" name="rsnjoin" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="620" EndPos="621" width="2" RecSegNo="1"/>
      <labl>
        Reason for joining
      </labl>
      <qstn>
        <qstnLit>
          Reason for joining
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        4775
      </sumStat>
      <sumStat type="invd">
        8136
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          2919
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/separation
        </labl>
        <catStat type="freq">
          449
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Widowhood
        </labl>
        <catStat type="freq">
          345
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Visiting
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          School/training (start or end)
        </labl>
        <catStat type="freq">
          45
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Work/employment (start or end)
        </labl>
        <catStat type="freq">
          107
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Sickness (own)
        </labl>
        <catStat type="freq">
          427
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Nursing (someone else)
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Death/bereavement
        </labl>
        <catStat type="freq">
          141
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Returning family member (no more specific cause known)
        </labl>
        <catStat type="freq">
          65
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Quarrel (family or neighbourhood)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Attending ceremony (funeral, wedding, etc.)
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Environmental/foreign/outside reason (e.g. refugee, house collapse)
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          Joining relative's household (no more specific reason known)
        </labl>
        <catStat type="freq">
          138
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Retirement
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          16
        </catValu>
        <labl>
          Improved living conditions
        </labl>
        <catStat type="freq">
          89
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          17
        </catValu>
        <labl>
          Born in the same family
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          18
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          374
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7762
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V138" name="posn" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="622" EndPos="623" width="2" RecSegNo="1"/>
      <labl>
        Position in household
      </labl>
      <qstn>
        <qstnLit>
          Position in household
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        5456
      </sumStat>
      <sumStat type="invd">
        7455
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Prisoner
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Head
        </labl>
        <catStat type="freq">
          2565
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Member
        </labl>
        <catStat type="freq">
          2701
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visitor
        </labl>
        <catStat type="freq">
          119
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Itinerant
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Employed worker or servant
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Renter
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Institutional member
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Non member relative
        </labl>
        <catStat type="freq">
          49
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Patient
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Relative of employed worker or renter
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          7455
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V139" name="prevvil" files="F1" intrvl="discrete">
      <location StartPos="624" EndPos="627" width="4" RecSegNo="1"/>
      <labl>
        Previous village (D)
      </labl>
      <qstn>
        <qstnLit>
          Previous village
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5422
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: prevvil [previous village] (table[s]: tb_tbx) variable: previl [previous village] (table[s]: tb_tbo, tb_tboto2007)
	
replace prevvil=previl if prevvil=="" & previl~=""]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V140" name="othhh5yr" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="628" EndPos="628" width="1" RecSegNo="1"/>
      <labl>
        Have you lived in another household during the last five years?
      </labl>
      <qstn>
        <qstnLit>
          Have you lived in another household during the last five years?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        6677
      </sumStat>
      <sumStat type="invd">
        6234
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          4861
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1816
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          55
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          6179
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V141" name="previl1" files="F1" intrvl="discrete">
      <location StartPos="629" EndPos="632" width="4" RecSegNo="1"/>
      <labl>
        Give the most recent: Previous household Village1
      </labl>
      <qstn>
        <qstnLit>
          Give the most recent: Previous household Village1
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        3249
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V142" name="prefrdate1" files="F1" intrvl="discrete">
      <location StartPos="633" EndPos="642" width="10" RecSegNo="1"/>
      <labl>
        Date started living in previous village 1 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date started living in previous village 1
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        3196
      </sumStat>
      <codInstr>
        <![CDATA[variable: prefrest1 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm1 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear1 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

recode prefrmm1 0=1
replace prefryear1=1895 if prefrest1==1
replace prefryear1=1905 if prefrest1==2
replace prefryear1=1915 if prefrest1==3
replace prefryear1=1925 if prefrest1==4
replace prefryear1=1935 if prefrest1==5
replace prefryear1=1945 if prefrest1==6
replace prefryear1=1955 if prefrest1==7
replace prefryear1=1965 if prefrest1==8
replace prefryear1=1975 if prefrest1==9
replace prefryear1=1985 if prefrest1==10
replace prefryear1=1995 if prefrest1==11
replace prefryear1=1895 if prefrest1==12
replace prefryear1=1907 if prefrest1==13
replace prefryear1=1924 if prefrest1==14
replace prefryear1=1940 if prefrest1==15
replace prefryear1=1951 if prefrest1==16
replace prefryear1=1960 if prefrest1==17
replace prefryear1=1970 if prefrest1==18
recode prefryear1 9999=. 0=.
gen prefrdate1=mdy(prefrmm1,15,prefryear1) if prefrmm1~=. & prefryear1~=.
replace prefrdate1=mdy(6,15,prefryear1) if prefrmm1==. & prefryear1~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V143" name="prefrdate1x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="643" EndPos="643" width="1" RecSegNo="1"/>
      <labl>
        Whether date started living in previous village 1 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date started living in previous village 1 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3196
      </sumStat>
      <sumStat type="invd">
        9715
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          678
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          2506
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9715
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: prefrest1 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm1 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear1 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

gen prefrdate1x=2 if prefryear1~=.
replace prefrdate1x=4 if prefrmm1==. & prefryear1~=.
replace prefrdate1x=5 if prefrest1~=. & prefryear1~=.
la val prefrdate1x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V144" name="pretodate1" files="F1" intrvl="discrete">
      <location StartPos="644" EndPos="653" width="10" RecSegNo="1"/>
      <labl>
        Date stopped living in previous village 1 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date stopped living in previous village 1
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        3254
      </sumStat>
      <codInstr>
        <![CDATA[variable: pretomm1 [month of previous village stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: pretoyear1 [year of previous village stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

recode pretomm1 0=1
recode pretoyear1 9999=. 0=.
gen pretodate1=mdy(pretomm1,15,pretoyear1) if pretomm1~=. & pretoyear1~=.
replace pretodate1=mdy(6,15,pretoyear1) if pretomm1==. & pretoyear1~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V145" name="pretodate1x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="654" EndPos="654" width="1" RecSegNo="1"/>
      <labl>
        Whether date stopped living in previous village 1 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date stopped living in previous village 1 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3254
      </sumStat>
      <sumStat type="invd">
        9657
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          2137
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          1117
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9657
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: pretomm1 [month of previous village stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: pretoyear1 [year of previous village stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

gen pretodate1x=2 if pretoyear1~=.
replace pretodate1x=4 if pretomm1==. & pretoyear1~=.
la val pretodate1x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V146" name="leaversn1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="655" EndPos="656" width="2" RecSegNo="1"/>
      <labl>
        why did you leave? [previous village 1]
      </labl>
      <qstn>
        <qstnLit>
          why did you leave? [previous village 1]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        1869
      </sumStat>
      <sumStat type="invd">
        11042
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          241
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/Separation
        </labl>
        <catStat type="freq">
          169
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Widowhood
        </labl>
        <catStat type="freq">
          228
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Visiting
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          School/training (start or end)
        </labl>
        <catStat type="freq">
          45
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Work/employment (start or end)
        </labl>
        <catStat type="freq">
          46
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Illness/sickness (own)
        </labl>
        <catStat type="freq">
          463
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Others
        </labl>
        <catStat type="freq">
          651
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          23
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          278
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10764
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V147" name="previl2" files="F1" intrvl="discrete">
      <location StartPos="657" EndPos="660" width="4" RecSegNo="1"/>
      <labl>
        Give the most recent: Previous household Village2
      </labl>
      <qstn>
        <qstnLit>
          Give the most recent: Previous household Village2
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        520
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V148" name="prefrdate2" files="F1" intrvl="discrete">
      <location StartPos="661" EndPos="670" width="10" RecSegNo="1"/>
      <labl>
        Date started living in previous village 1 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date started living in previous village 1
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        518
      </sumStat>
      <codInstr>
        <![CDATA[variable: prefrest2 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm2 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear2 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

recode prefrmm2 0=1
replace prefryear2=1895 if prefrest2==1
replace prefryear2=1905 if prefrest2==2
replace prefryear2=1915 if prefrest2==3
replace prefryear2=1925 if prefrest2==4
replace prefryear2=1935 if prefrest2==5
replace prefryear2=1945 if prefrest2==6
replace prefryear2=1955 if prefrest2==7
replace prefryear2=1965 if prefrest2==8
replace prefryear2=1975 if prefrest2==9
replace prefryear2=1985 if prefrest2==10
replace prefryear2=1995 if prefrest2==11
replace prefryear2=1895 if prefrest2==12
replace prefryear2=1907 if prefrest2==13
replace prefryear2=1924 if prefrest2==14
replace prefryear2=1940 if prefrest2==15
replace prefryear2=1951 if prefrest2==16
replace prefryear2=1960 if prefrest2==17
replace prefryear2=1970 if prefrest2==18
recode prefryear2 9999=. 0=.
gen prefrdate2=mdy(prefrmm2,15,prefryear2) if prefrmm2~=. & prefryear2~=.
replace prefrdate2=mdy(6,15,prefryear2) if prefrmm2==. & prefryear2~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V149" name="prefrdate2x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="671" EndPos="671" width="1" RecSegNo="1"/>
      <labl>
        Whether date started living in previous village 1 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date started living in previous village 1 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        518
      </sumStat>
      <sumStat type="invd">
        12393
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          240
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          277
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12393
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: prefrest2 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm2 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear2 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

gen prefrdate2x=2 if prefryear2~=.
replace prefrdate2x=4 if prefrmm2==. & prefryear2~=.
replace prefrdate2x=5 if prefrest2~=. & prefryear2~=.
la val prefrdate2x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V150" name="pretodate2" files="F1" intrvl="discrete">
      <location StartPos="672" EndPos="681" width="10" RecSegNo="1"/>
      <labl>
        Date stopped living in previous village 2 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date stopped living in previous village 2
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        520
      </sumStat>
      <codInstr>
        <![CDATA[variable: pretomm2 [month of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: pretoyear2 [year of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

recode pretomm2 0=1
recode pretoyear2 9999=. 0=.
gen pretodate2=mdy(pretomm2,15,pretoyear2) if pretomm2~=. & pretoyear2~=.
replace pretodate2=mdy(6,15,pretoyear2) if pretomm2==. & pretoyear2~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V151" name="pretodate2x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="682" EndPos="682" width="1" RecSegNo="1"/>
      <labl>
        Whether date stopped living in previous village 2 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date stopped living in previous village 2 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        520
      </sumStat>
      <sumStat type="invd">
        12391
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          364
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          156
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12391
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: pretomm2 [month of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: pretoyear2 [year of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

gen pretodate2x=2 if pretoyear2~=.
replace pretodate2x=4 if pretomm2==. & pretoyear2~=.
la val pretodate2x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V152" name="leaversn2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="683" EndPos="684" width="2" RecSegNo="1"/>
      <labl>
        why did you leave? [previous village 2]
      </labl>
      <qstn>
        <qstnLit>
          why did you leave? [previous village 2]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        440
      </sumStat>
      <sumStat type="invd">
        12471
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          49
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/Separation
        </labl>
        <catStat type="freq">
          30
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Widowhood
        </labl>
        <catStat type="freq">
          72
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Visiting
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          School/training (start or end)
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Work/employment (start or end)
        </labl>
        <catStat type="freq">
          17
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Illness/sickness (own)
        </labl>
        <catStat type="freq">
          71
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Others
        </labl>
        <catStat type="freq">
          185
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          80
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12391
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V153" name="previl3" files="F1" intrvl="discrete">
      <location StartPos="685" EndPos="688" width="4" RecSegNo="1"/>
      <labl>
        Give the most recent: Previous household Village3
      </labl>
      <qstn>
        <qstnLit>
          Give the most recent: Previous household Village3
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        127
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V154" name="prefrdate3" files="F1" intrvl="discrete">
      <location StartPos="689" EndPos="698" width="10" RecSegNo="1"/>
      <labl>
        Date started living in previous village 3 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date started living in previous village 3
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        127
      </sumStat>
      <codInstr>
        <![CDATA[variable: prefrest3 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm3 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear3 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

recode prefrmm3 0=1
replace prefryear3=1895 if prefrest3==1
replace prefryear3=1905 if prefrest3==2
replace prefryear3=1915 if prefrest3==3
replace prefryear3=1925 if prefrest3==4
replace prefryear3=1935 if prefrest3==5
replace prefryear3=1945 if prefrest3==6
replace prefryear3=1955 if prefrest3==7
replace prefryear3=1965 if prefrest3==8
replace prefryear3=1975 if prefrest3==9
replace prefryear3=1985 if prefrest3==10
replace prefryear3=1995 if prefrest3==11
replace prefryear3=1895 if prefrest3==12
replace prefryear3=1907 if prefrest3==13
replace prefryear3=1924 if prefrest3==14
replace prefryear3=1940 if prefrest3==15
replace prefryear3=1951 if prefrest3==16
replace prefryear3=1960 if prefrest3==17
replace prefryear3=1970 if prefrest3==18
recode prefryear3 9999=. 0=.
gen prefrdate3=mdy(prefrmm3,15,prefryear3) if prefrmm3~=. & prefryear3~=.
replace prefrdate3=mdy(6,15,prefryear3) if prefrmm3==. & prefryear3~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V155" name="prefrdate3x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="699" EndPos="699" width="1" RecSegNo="1"/>
      <labl>
        Whether date started living in previous village 3 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date started living in previous village 3 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        127
      </sumStat>
      <sumStat type="invd">
        12784
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          71
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          56
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12784
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: prefrest3 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm3 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear3 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

gen prefrdate3x=2 if prefryear3~=.
replace prefrdate3x=4 if prefrmm3==. & prefryear3~=.
replace prefrdate3x=5 if prefrest3~=. & prefryear3~=.
la val prefrdate3x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V156" name="pretodate3" files="F1" intrvl="discrete">
      <location StartPos="700" EndPos="709" width="10" RecSegNo="1"/>
      <labl>
        Date stopped living in previous village 3 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date stopped living in previous village 3
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        127
      </sumStat>
      <codInstr>
        <![CDATA[variable: pretomm3 [month of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: pretoyear3 [year of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

recode pretomm3 0=1
recode pretoyear3 9999=. 0=.
gen pretodate3=mdy(pretomm3,15,pretoyear3) if pretomm3~=. & pretoyear3~=.
replace pretodate3=mdy(6,15,pretoyear3) if pretomm3==. & pretoyear3~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V157" name="pretodate3x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="710" EndPos="710" width="1" RecSegNo="1"/>
      <labl>
        Whether date stopped living in previous village 3 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date stopped living in previous village 3 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        127
      </sumStat>
      <sumStat type="invd">
        12784
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          90
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          37
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12784
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: pretomm3 [month of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: pretoyear3 [year of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

gen pretodate3x=2 if pretoyear3~=.
replace pretodate3x=4 if pretomm3==. & pretoyear3~=.
la val pretodate3x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V158" name="leaversn3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="711" EndPos="712" width="2" RecSegNo="1"/>
      <labl>
        why did you leave? [previous village 3]
      </labl>
      <qstn>
        <qstnLit>
          why did you leave? [previous village 3]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <invalrng>
        <item VALUE="99"/>
      </invalrng>
      <sumStat type="vald">
        106
      </sumStat>
      <sumStat type="invd">
        12805
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/Separation
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Widowhood
        </labl>
        <catStat type="freq">
          26
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Visiting
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          School/training (start or end)
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Work/employment (start or end)
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Illness/sickness (own)
        </labl>
        <catStat type="freq">
          15
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Others
        </labl>
        <catStat type="freq">
          36
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          21
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12784
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V159" name="previl4" files="F1" intrvl="discrete">
      <location StartPos="713" EndPos="716" width="4" RecSegNo="1"/>
      <labl>
        Give the most recent: Previous household Village4
      </labl>
      <qstn>
        <qstnLit>
          Give the most recent: Previous household Village4
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        22
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V160" name="prefrdate4" files="F1" intrvl="discrete">
      <location StartPos="717" EndPos="726" width="10" RecSegNo="1"/>
      <labl>
        Date started living in previous village 4 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date started living in previous village 4
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        22
      </sumStat>
      <codInstr>
        <![CDATA[variable: prefrest4 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm4 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear4 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

recode prefrmm4 0=.
replace prefryear4=1895 if prefrest4==1
replace prefryear4=1905 if prefrest4==2
replace prefryear4=1915 if prefrest4==3
replace prefryear4=1925 if prefrest4==4
replace prefryear4=1935 if prefrest4==5
replace prefryear4=1945 if prefrest4==6
replace prefryear4=1955 if prefrest4==7
replace prefryear4=1965 if prefrest4==8
replace prefryear4=1975 if prefrest4==9
replace prefryear4=1985 if prefrest4==10
replace prefryear4=1995 if prefrest4==11
replace prefryear4=1895 if prefrest4==12
replace prefryear4=1907 if prefrest4==13
replace prefryear4=1924 if prefrest4==14
replace prefryear4=1940 if prefrest4==15
replace prefryear4=1951 if prefrest4==16
replace prefryear4=1960 if prefrest4==17
replace prefryear4=1970 if prefrest4==18
recode prefryear4 9999=. 0=.
gen prefrdate4=mdy(prefrmm4,15,prefryear4) if prefrmm4~=. & prefryear4~=.
replace prefrdate4=mdy(6,15,prefryear4) if prefrmm4==. & prefryear4~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V161" name="prefrdate4x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="727" EndPos="727" width="1" RecSegNo="1"/>
      <labl>
        Whether date started living in previous village 4 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date started living in previous village 4 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        22
      </sumStat>
      <sumStat type="invd">
        12889
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12889
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: prefrest4 [decade estimate of previous village start] table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefrmm4 [month of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: prefryear4 [year of previous village start] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

gen prefrdate4x=2 if prefryear4~=.
replace prefrdate4x=4 if prefrmm4==. & prefryear4~=.
replace prefrdate4x=5 if prefrest4~=. & prefryear4~=.
la val prefrdate4x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V162" name="pretodate4" files="F1" intrvl="discrete">
      <location StartPos="728" EndPos="737" width="10" RecSegNo="1"/>
      <labl>
        Date stopped living in previous village 4 (D)
      </labl>
      <qstn>
        <qstnLit>
          Date stopped living in previous village 4
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        22
      </sumStat>
      <codInstr>
        <![CDATA[variable: pretomm4 [month of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: pretoyear4 [year of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

recode pretomm4 0=.
recode pretoyear4 9999=. 0=.
gen pretodate4=mdy(pretomm4,15,pretoyear4) if pretomm4~=. & pretoyear4~=.
replace pretodate4=mdy(6,15,pretoyear4) if pretomm4==. & pretoyear4~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V163" name="pretodate4x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="738" EndPos="738" width="1" RecSegNo="1"/>
      <labl>
        Whether date stopped living in previous village 4 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether date stopped living in previous village 4 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        22
      </sumStat>
      <sumStat type="invd">
        12889
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12889
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: pretomm4 [month of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: pretoyear4 [year of previous village stop] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

gen pretodate4x=2 if pretoyear4~=.
replace pretodate4x=4 if pretomm4==. & pretoyear4~=.
la val pretodate4x datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V164" name="leaversn4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="739" EndPos="740" width="2" RecSegNo="1"/>
      <labl>
        why did you leave? [previous village 4]
      </labl>
      <qstn>
        <qstnLit>
          why did you leave? [previous village 4]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        22
      </sumStat>
      <sumStat type="invd">
        12889
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/Separation
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Widowhood
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Visiting
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          School/training (start or end)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Work/employment (start or end)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Illness/sickness (own)
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Others
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12889
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V165" name="illcurhse" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="741" EndPos="741" width="1" RecSegNo="1"/>
      <labl>
        living in (current household) when you became unwell with this illness?
      </labl>
      <qstn>
        <qstnLit>
          living in (current household) when you became unwell with this illness?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3971
      </sumStat>
      <sumStat type="invd">
        8940
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          630
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          3310
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          31
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8940
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V166" name="illghhid1" files="F1" intrvl="discrete">
      <location StartPos="742" EndPos="746" width="5" RecSegNo="1"/>
      <labl>
        ghhid of household1
      </labl>
      <qstn>
        <qstnLit>
          ghhid of household1
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        171
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V167" name="illfrdate1" files="F1" intrvl="discrete">
      <location StartPos="747" EndPos="756" width="10" RecSegNo="1"/>
      <labl>
        Start date of living in house where became ill (if not current house) (D)
      </labl>
      <qstn>
        <qstnLit>
          Start date of living in house where became ill (if not current house)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        684
      </sumStat>
      <codInstr>
        <![CDATA[variable: illfrest1 [decade estimate of ill house start] (table[s]: tb_tbxto2007)
variable: illfrmm1 [month of ill house start] (table[s]: tb_tbx, tb_tbxto2007)
variable: illfryear1 [year of ill house start] (table[s]: tb_tbx, tb_tbxto2007)
variable: illfrdate1 [date of ill house start] (table[s]: tb_tbxto2007)

recode illfrmm1 0=.
replace illfryear1=1895 if illfrest1==1
replace illfryear1=1905 if illfrest1==2
replace illfryear1=1915 if illfrest1==3
replace illfryear1=1925 if illfrest1==4
replace illfryear1=1935 if illfrest1==5
replace illfryear1=1945 if illfrest1==6
replace illfryear1=1955 if illfrest1==7
replace illfryear1=1965 if illfrest1==8
replace illfryear1=1975 if illfrest1==9
replace illfryear1=1985 if illfrest1==10
replace illfryear1=1995 if illfrest1==11
replace illfryear1=1895 if illfrest1==12
replace illfryear1=1907 if illfrest1==13
replace illfryear1=1924 if illfrest1==14
replace illfryear1=1940 if illfrest1==15
replace illfryear1=1951 if illfrest1==16
replace illfryear1=1960 if illfrest1==17
replace illfryear1=1970 if illfrest1==18
recode illfryear1 9999=. 0=.
replace illfrdate1=mdy(illfrmm1,15,illfryear1) if illfrmm1~=. & illfryear1~=.
replace illfrdate1=mdy(6,15,illfryear1) if illfrmm1==. & illfryear1~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V168" name="illfrdate1x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="757" EndPos="757" width="1" RecSegNo="1"/>
      <labl>
        Whether illhsefrdate1 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether illhsefrdate1 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1734
      </sumStat>
      <sumStat type="invd">
        11177
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          1369
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          358
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11177
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: illfrest1 [decade estimate of ill house start] (table[s]: tb_tbxto2007)
variable: illfrmm1 [month of ill house start] (table[s]: tb_tbx, tb_tbxto2007)
variable: illfryear1 [year of ill house start] (table[s]: tb_tbx, tb_tbxto2007)
variable: illfrdate1x [date of ill house start is estimate] (table[s]: tb_tbxto2007)

replace illfrdate1x=2 if illfryear1~=.
replace illfrdate1x=4 if illfrmm1==. & illfryear1~=.
replace illfrdate1x=5 if illfrest1~=. & illfryear1~=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V169" name="illtodate1" files="F1" intrvl="discrete">
      <location StartPos="758" EndPos="767" width="10" RecSegNo="1"/>
      <labl>
        Stop date of living in house where became ill (if not current house) (D)
      </labl>
      <qstn>
        <qstnLit>
          Stop date of living in house where became ill (if not current house)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        696
      </sumStat>
      <codInstr>
        <![CDATA[variable: illtoest1 [decade estimate of ill house stop] (table[s]: tb_tbxto2007)
variable: illtomm1 [month of ill house stop] (table[s]: tb_tbx, tb_tbxto2007)
variable: illtoyear1 [year of ill house stop] (table[s]: tb_tbx, tb_tbxto2007)
variable: illtodate1 [date of ill house stop] (table[s]: tb_tbxto2007)

recode illtomm1 0=.
replace illtoyear1=1895 if illtoest1==1
replace illtoyear1=1905 if illtoest1==2
replace illtoyear1=1915 if illtoest1==3
replace illtoyear1=1925 if illtoest1==4
replace illtoyear1=1935 if illtoest1==5
replace illtoyear1=1945 if illtoest1==6
replace illtoyear1=1955 if illtoest1==7
replace illtoyear1=1965 if illtoest1==8
replace illtoyear1=1975 if illtoest1==9
replace illtoyear1=1985 if illtoest1==10
replace illtoyear1=1995 if illtoest1==11
replace illtoyear1=1895 if illtoest1==12
replace illtoyear1=1907 if illtoest1==13
replace illtoyear1=1924 if illtoest1==14
replace illtoyear1=1940 if illtoest1==15
replace illtoyear1=1951 if illtoest1==16
replace illtoyear1=1960 if illtoest1==17
replace illtoyear1=1970 if illtoest1==18
recode illtoyear1 9999=. 0=.
replace illtodate1=mdy(illtomm1,15,illtoyear1) if illtomm1~=. & illtoyear1~=.
replace illtodate1=mdy(6,15,illtoyear1) if illtomm1==. & illtoyear1~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V170" name="illtodate1x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="768" EndPos="768" width="1" RecSegNo="1"/>
      <labl>
        Whether illhsetodate1 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether illhsetodate1 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        660
      </sumStat>
      <sumStat type="invd">
        12251
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          580
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          80
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12251
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: illtoest1 [decade estimate of ill house stop] (table[s]: tb_tbxto2007)
variable: illtomm1 [month of ill house stop] (table[s]: tb_tbx, tb_tbxto2007)
variable: illtoyear1 [year of ill house stop] (table[s]: tb_tbx, tb_tbxto2007)
variable: illtodate1x [date of ill house stop is estimate] (table[s]: tb_tbxto2007)

replace illtodate1x=2 if illtoyear1~=.
replace illtodate1x=4 if illtomm1==. & illtoyear1~=.
replace illtodate1x=5 if illtoest1~=. & illtoyear1~=.
replace illfrdate2=illfromdate2 if illfrdate2==. & illfromdate2~=.
replace illfrdate2x=illfromdate2x if illfrdate2x==. & illfromdate2x~=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V171" name="illtovill1" files="F1" intrvl="discrete">
      <location StartPos="769" EndPos="772" width="4" RecSegNo="1"/>
      <labl>
        If no: Which village living in when you became unwell?
      </labl>
      <qstn>
        <qstnLit>
          If no: Which village living in when you became unwell?
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        427
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V172" name="illvrsn1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="773" EndPos="774" width="2" RecSegNo="1"/>
      <labl>
        Why did you leave? [household where became ill, if not current house]
      </labl>
      <qstn>
        <qstnLit>
          Why did you leave? [household where became ill, if not current house]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        630
      </sumStat>
      <sumStat type="invd">
        12281
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          9
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/Separation
        </labl>
        <catStat type="freq">
          24
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Widowhood
        </labl>
        <catStat type="freq">
          9
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Visiting
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          School/training (start or end)
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Work/employment (start or end)
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Illness/sickness (own)
        </labl>
        <catStat type="freq">
          520
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Others
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          21
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12281
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V173" name="illothhh" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="775" EndPos="775" width="1" RecSegNo="1"/>
      <labl>
        Lived in another household for two weeks or more since you started coughing?
      </labl>
      <qstn>
        <qstnLit>
          Lived in another household for two weeks or more since you started coughing?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3971
      </sumStat>
      <sumStat type="invd">
        8940
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          3530
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          370
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          70
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8940
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V174" name="illghhid2" files="F1" intrvl="discrete">
      <location StartPos="776" EndPos="780" width="5" RecSegNo="1"/>
      <labl>
        gghid of household2
      </labl>
      <qstn>
        <qstnLit>
          gghid of household2
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        188
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V175" name="illsleep2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="781" EndPos="781" width="1" RecSegNo="1"/>
      <labl>
        in this household2 were you sleeping in the same room with anyone?
      </labl>
      <qstn>
        <qstnLit>
          in this household2 were you sleeping in the same room with anyone?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        188
      </sumStat>
      <sumStat type="invd">
        12723
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          64
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          117
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12723
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V176" name="illfrdate2" files="F1" intrvl="discrete">
      <location StartPos="782" EndPos="791" width="10" RecSegNo="1"/>
      <labl>
        Start date of living in house2 where became ill (if not current house) (D)
      </labl>
      <qstn>
        <qstnLit>
          Start date of living in house2 where became ill (if not current house) (D)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        188
      </sumStat>
      <catgry>
        <catValu>
          1943-06-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1997-06-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2000-06-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2001-06-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2002-06-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2002-12-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2003-03-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2003-06-20
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2005-05-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2005-06-15
        </catValu>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2005-09-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2005-10-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2006-06-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2006-09-10
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2006-09-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2006-11-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2006-12-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-01-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-03-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-04-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-04-21
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-05-09
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-05-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-06-20
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-07-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-08-04
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-08-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-09-15
        </catValu>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-10-29
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-10-30
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-11-11
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-11-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-12-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2007-12-20
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-01-04
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-01-28
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-02-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-03-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-04-10
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-06-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-09-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-11-01
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2008-11-24
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-02-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-03-03
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-04-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-05-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-07-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-08-25
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-09-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2009-12-15
        </catValu>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-01-15
        </catValu>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-02-03
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-03-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-05-17
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-06-09
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-06-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-08-05
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-10-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2010-11-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-01-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-02-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-03-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-06-15
        </catValu>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-07-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-08-10
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-08-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-08-20
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-09-05
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-11-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-11-17
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-12-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2011-12-20
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-02-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-03-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-06-07
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-07-11
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-08-06
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-09-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-10-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-11-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-12-03
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2012-12-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-01-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-01-26
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-02-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-03-02
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-03-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-04-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-05-03
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-05-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-08-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-09-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-10-12
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2013-10-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-03-02
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-03-15
        </catValu>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-04-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-05-16
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-05-17
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-06-15
        </catValu>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-06-28
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-09-15
        </catValu>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-10-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-11-10
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2014-11-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-01-15
        </catValu>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-02-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-03-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-03-31
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-04-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-05-15
        </catValu>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-06-04
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-06-09
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-06-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-07-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-10-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-11-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-12-11
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2015-12-24
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-03-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-04-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-06-14
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-06-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-07-13
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-07-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-09-10
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-11-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2016-12-30
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-01-07
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-02-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-02-17
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-04-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-06-04
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-07-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-08-15
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2017-12-15
        </catValu>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2018-05-05
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: illfrdate2 [date of ill house start] (table[s]: tb_tbxto2007)
variable: illfromdate2 [date of ill house start] (table[s]: tb_tbx)

replace illfrdate2=illfromdate2 if illfrdate2==. & illfromdate2~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V177" name="illfrdate2x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="792" EndPos="792" width="1" RecSegNo="1"/>
      <labl>
        Whether illhsefrdate2 is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether illhsefrdate2 is an estimate (D)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        134
      </sumStat>
      <sumStat type="invd">
        12777
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          118
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12777
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: illfrdate2x [date of ill house start is estimate] (table[s]: tb_tbxto2007)
variable: illfromdate2x [date of ill house start is estimate] (table[s]: tb_tbx)

replace illfrdate2x=illfromdate2x if illfrdate2x==. & illfromdate2x~=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V178" name="illtodate2" files="F1" intrvl="discrete">
      <location StartPos="793" EndPos="802" width="10" RecSegNo="1"/>
      <labl>
        When stopped living at household2 since started coughing
      </labl>
      <qstn>
        <qstnLit>
          When stopped living at household2 since started coughing
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        187
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V179" name="illtodate2x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="803" EndPos="803" width="1" RecSegNo="1"/>
      <labl>
        if illtodate2 is an estimate
      </labl>
      <qstn>
        <qstnLit>
          if illtodate2 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        97
      </sumStat>
      <sumStat type="invd">
        12814
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          85
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12814
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V180" name="illtovill2" files="F1" intrvl="discrete">
      <location StartPos="804" EndPos="807" width="4" RecSegNo="1"/>
      <labl>
        village2 since started coughing
      </labl>
      <qstn>
        <qstnLit>
          village2 since started coughing
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        179
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V181" name="illghhid3" files="F1" intrvl="discrete">
      <location StartPos="808" EndPos="812" width="5" RecSegNo="1"/>
      <labl>
        gghid of household3
      </labl>
      <qstn>
        <qstnLit>
          gghid of household3
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        6
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V182" name="illsleep3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="813" EndPos="813" width="1" RecSegNo="1"/>
      <labl>
        in this household3 were you sleeping in the same room with anyone?
      </labl>
      <qstn>
        <qstnLit>
          in this household3 were you sleeping in the same room with anyone?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        8
      </sumStat>
      <sumStat type="invd">
        12903
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12903
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V183" name="illfromdate3" files="F1" intrvl="discrete">
      <location StartPos="814" EndPos="823" width="10" RecSegNo="1"/>
      <labl>
        When started living at household3 since started coughing
      </labl>
      <qstn>
        <qstnLit>
          When started living at household3 since started coughing
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V184" name="illfromdate3x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="824" EndPos="824" width="1" RecSegNo="1"/>
      <labl>
        if illfromdate3 is an estimate
      </labl>
      <qstn>
        <qstnLit>
          if illfromdate3 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        3
      </sumStat>
      <sumStat type="invd">
        12908
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12908
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V185" name="illtodate3" files="F1" intrvl="discrete">
      <location StartPos="825" EndPos="834" width="10" RecSegNo="1"/>
      <labl>
        When stopped living at household3 since started coughing
      </labl>
      <qstn>
        <qstnLit>
          When stopped living at household3 since started coughing
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        4
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V186" name="illtodate3x" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="835" EndPos="835" width="1" RecSegNo="1"/>
      <labl>
        if illtodate3 is an estimate
      </labl>
      <qstn>
        <qstnLit>
          if illtodate3 is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        3
      </sumStat>
      <sumStat type="invd">
        12908
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12908
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V187" name="illtovill3" files="F1" intrvl="discrete">
      <location StartPos="836" EndPos="839" width="4" RecSegNo="1"/>
      <labl>
        village3 since started coughing
      </labl>
      <qstn>
        <qstnLit>
          village3 since started coughing
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        4
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V188" name="clincon" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="840" EndPos="840" width="1" RecSegNo="1"/>
      <labl>
        Been to an ART clinic as a guardian to someone or as a patient?
      </labl>
      <qstn>
        <qstnLit>
          Been to an ART clinic as a guardian to someone or as a patient?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        952
      </sumStat>
      <sumStat type="invd">
        11959
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          464
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          483
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11959
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V189" name="clin1" files="F1" intrvl="discrete">
      <location StartPos="841" EndPos="846" width="6" RecSegNo="1"/>
      <labl>
        If yes Clinic1 [ART]
      </labl>
      <qstn>
        <qstnLit>
          If yes Clinic1 [ART]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        482
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V190" name="firyr1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="847" EndPos="850" width="4" RecSegNo="1"/>
      <labl>
        First year1 [attending ART clinic1]
      </labl>
      <qstn>
        <qstnLit>
          First year1 [attending ART clinic1]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="2004" max="9999"/>
      </valrng>
      <sumStat type="vald">
        483
      </sumStat>
      <sumStat type="invd">
        12428
      </sumStat>
      <catgry>
        <catValu>
          9998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V191" name="lasyr1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="851" EndPos="854" width="4" RecSegNo="1"/>
      <labl>
        Last year1 [attending ART clinic1]
      </labl>
      <qstn>
        <qstnLit>
          Last year1 [attending ART clinic1]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="2005" max="9999"/>
      </valrng>
      <sumStat type="vald">
        483
      </sumStat>
      <sumStat type="invd">
        12428
      </sumStat>
      <catgry>
        <catValu>
          9998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V192" name="clin2" files="F1" intrvl="discrete">
      <location StartPos="855" EndPos="860" width="6" RecSegNo="1"/>
      <labl>
        If yes Clinic2 [ART]
      </labl>
      <qstn>
        <qstnLit>
          If yes Clinic2 [ART]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        81
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V193" name="firyr2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="861" EndPos="864" width="4" RecSegNo="1"/>
      <labl>
        First year2 [attending ART clinic2]
      </labl>
      <qstn>
        <qstnLit>
          First year2 [attending ART clinic2]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="2004" max="9999"/>
      </valrng>
      <sumStat type="vald">
        85
      </sumStat>
      <sumStat type="invd">
        12826
      </sumStat>
      <catgry>
        <catValu>
          9998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V194" name="lasyr2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="865" EndPos="868" width="4" RecSegNo="1"/>
      <labl>
        Last year2 [attending ART clinic2]
      </labl>
      <qstn>
        <qstnLit>
          Last year2 [attending ART clinic2]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="2013" max="9999"/>
      </valrng>
      <sumStat type="vald">
        81
      </sumStat>
      <sumStat type="invd">
        12830
      </sumStat>
      <catgry>
        <catValu>
          9998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V195" name="famtrttb" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="869" EndPos="869" width="1" RecSegNo="1"/>
      <labl>
        Has anyone in your household or close family EVER been treated for TB?
      </labl>
      <qstn>
        <qstnLit>
          Has anyone in your household or close family EVER been treated for TB?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        9871
      </sumStat>
      <sumStat type="invd">
        3040
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          7030
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          2584
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          257
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3040
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V196" name="knowtrttb" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="870" EndPos="870" width="1" RecSegNo="1"/>
      <labl>
        Do you know anyone else who has been treated for TB, WITHIN THE LAST 5 YEARS?
      </labl>
      <qstn>
        <qstnLit>
          Do you know anyone else who has been treated for TB, WITHIN THE LAST 5 YEARS?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        9871
      </sumStat>
      <sumStat type="invd">
        3040
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          8230
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1281
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          360
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3040
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V197" name="idcontac1" files="F1" intrvl="discrete">
      <location StartPos="871" EndPos="877" width="7" RecSegNo="1"/>
      <labl>
        ident of contact [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          ident of contact [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1673
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: idcontac (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
rename idcase ident
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V198" name="idcontac2" files="F1" intrvl="discrete">
      <location StartPos="878" EndPos="884" width="7" RecSegNo="1"/>
      <labl>
        ident of contact [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          ident of contact [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        295
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: idcontac (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
rename idcase ident
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V199" name="idcontac3" files="F1" intrvl="discrete">
      <location StartPos="885" EndPos="891" width="7" RecSegNo="1"/>
      <labl>
        ident of contact [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          ident of contact [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        49
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: idcontac (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
rename idcase ident
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V200" name="idcontac4" files="F1" intrvl="discrete">
      <location StartPos="892" EndPos="898" width="7" RecSegNo="1"/>
      <labl>
        ident of contact [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          ident of contact [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: idcontac (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
rename idcase ident
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V201" name="idcontac5" files="F1" intrvl="discrete">
      <location StartPos="899" EndPos="905" width="7" RecSegNo="1"/>
      <labl>
        ident of contact [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          ident of contact [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: idcontac (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
rename idcase ident
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V202" name="cfamcont1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="906" EndPos="906" width="1" RecSegNo="1"/>
      <labl>
        Family contact? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you had Family contact? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1673
      </sumStat>
      <sumStat type="invd">
        11238
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: famcont (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V203" name="cfamcont2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="907" EndPos="907" width="1" RecSegNo="1"/>
      <labl>
        Family contact? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you had Family contact? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        295
      </sumStat>
      <sumStat type="invd">
        12616
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: famcont (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V204" name="cfamcont3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="908" EndPos="908" width="1" RecSegNo="1"/>
      <labl>
        Family contact? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you had Family contact? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        49
      </sumStat>
      <sumStat type="invd">
        12862
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: famcont (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V205" name="cfamcont4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="909" EndPos="909" width="1" RecSegNo="1"/>
      <labl>
        Family contact? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you had Family contact? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        5
      </sumStat>
      <sumStat type="invd">
        12906
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: famcont (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V206" name="cfamcont5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="910" EndPos="910" width="1" RecSegNo="1"/>
      <labl>
        Family contact? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you had Family contact? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: famcont (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V207" name="ccontvil1" files="F1" intrvl="discrete">
      <location StartPos="911" EndPos="914" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Village when ill  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Village when ill  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1673
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contvil [village of contact] (table[s]: tb_contact, tb_contactto2007)
variable: curvil [village of contact] (table[s]: tbold_contact)

<the exposure contacts are processed separately first:>
replace contvil=curvil if contvil=="" & curvil~=""
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V208" name="ccontvil2" files="F1" intrvl="discrete">
      <location StartPos="915" EndPos="918" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Village when ill  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Village when ill  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        295
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contvil [village of contact] (table[s]: tb_contact, tb_contactto2007)
variable: curvil [village of contact] (table[s]: tbold_contact)

<the exposure contacts are processed separately first:>
replace contvil=curvil if contvil=="" & curvil~=""
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V209" name="ccontvil3" files="F1" intrvl="discrete">
      <location StartPos="919" EndPos="922" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Village when ill  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Village when ill  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        49
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contvil [village of contact] (table[s]: tb_contact, tb_contactto2007)
variable: curvil [village of contact] (table[s]: tbold_contact)

<the exposure contacts are processed separately first:>
replace contvil=curvil if contvil=="" & curvil~=""
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V210" name="ccontvil4" files="F1" intrvl="discrete">
      <location StartPos="923" EndPos="926" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Village when ill  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Village when ill  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contvil [village of contact] (table[s]: tb_contact, tb_contactto2007)
variable: curvil [village of contact] (table[s]: tbold_contact)

<the exposure contacts are processed separately first:>
replace contvil=curvil if contvil=="" & curvil~=""
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V211" name="ccontvil5" files="F1" intrvl="discrete">
      <location StartPos="927" EndPos="930" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Village when ill  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Village when ill  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contvil [village of contact] (table[s]: tb_contact, tb_contactto2007)
variable: curvil [village of contact] (table[s]: tbold_contact)

<the exposure contacts are processed separately first:>
replace contvil=curvil if contvil=="" & curvil~=""
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V212" name="ccontplace1" files="F1" intrvl="discrete">
      <location StartPos="931" EndPos="934" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Where did contact occur?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Where did contact occur?  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        710
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contplace (table[s]: tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V213" name="ccontplace2" files="F1" intrvl="discrete">
      <location StartPos="935" EndPos="938" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Where did contact occur?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Where did contact occur?  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        149
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contplace (table[s]: tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V214" name="ccontplace3" files="F1" intrvl="discrete">
      <location StartPos="939" EndPos="942" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Where did contact occur?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Where did contact occur?  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        28
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contplace (table[s]: tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V215" name="ccontplace4" files="F1" intrvl="discrete">
      <location StartPos="943" EndPos="946" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Where did contact occur?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Where did contact occur?  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        3
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contplace (table[s]: tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V216" name="ccontplace5" files="F1" intrvl="discrete">
      <location StartPos="947" EndPos="950" width="4" RecSegNo="1"/>
      <labl>
        <![CDATA[Where did contact occur?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Where did contact occur?  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: contplace (table[s]: tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V217" name="ctrtdate1" files="F1" intrvl="discrete">
      <location StartPos="951" EndPos="960" width="10" RecSegNo="1"/>
      <labl>
        <![CDATA[Date treatment started [date]  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Date treatment started [date]  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1541
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtest [decade estimate of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtmm [month of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtyear [year of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtdate [date of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
replace trtyear=1905 if trtest==2
replace trtyear=1915 if trtest==3
replace trtyear=1925 if trtest==4
replace trtyear=1935 if trtest==5
replace trtyear=1945 if trtest==6
replace trtyear=1955 if trtest==7
replace trtyear=1965 if trtest==8
replace trtyear=1975 if trtest==9
replace trtyear=1985 if trtest==10
replace trtyear=1995 if trtest==11
recode trtyear 9999=.
gen trtdate=mdy(trtmm,15,trtyear) if trtmm~=. & trtyear~=.
replace trtdate=mdy(6,15,trtyear) if trtmm==. & trtyear~=.reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V218" name="ctrtdatex1" files="F1" intrvl="discrete">
      <location StartPos="961" EndPos="970" width="10" RecSegNo="1"/>
      <labl>
        Whether trtdate is an estimate [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether treatment date is an estimate [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1541
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtdatex (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
gen trtdatex=2 if trtyear~=.
replace trtdatex=4 if trtmm==. & trtyear~=.
replace trtdatex=5 if trtest~=. & trtyear~=.
la val trtdatex* datex
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V219" name="ctrtdate2" files="F1" intrvl="discrete">
      <location StartPos="971" EndPos="980" width="10" RecSegNo="1"/>
      <labl>
        <![CDATA[Date treatment started [date]  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Date treatment started [date]  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        278
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtest [decade estimate of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtmm [month of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtyear [year of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtdate [date of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
replace trtyear=1905 if trtest==2
replace trtyear=1915 if trtest==3
replace trtyear=1925 if trtest==4
replace trtyear=1935 if trtest==5
replace trtyear=1945 if trtest==6
replace trtyear=1955 if trtest==7
replace trtyear=1965 if trtest==8
replace trtyear=1975 if trtest==9
replace trtyear=1985 if trtest==10
replace trtyear=1995 if trtest==11
recode trtyear 9999=.
gen trtdate=mdy(trtmm,15,trtyear) if trtmm~=. & trtyear~=.
replace trtdate=mdy(6,15,trtyear) if trtmm==. & trtyear~=.reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V220" name="ctrtdatex2" files="F1" intrvl="discrete">
      <location StartPos="981" EndPos="990" width="10" RecSegNo="1"/>
      <labl>
        Whether trtdate is an estimate [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether treatment date is an estimate [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        278
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtdatex (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
gen trtdatex=2 if trtyear~=.
replace trtdatex=4 if trtmm==. & trtyear~=.
replace trtdatex=5 if trtest~=. & trtyear~=.
la val trtdatex* datex
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V221" name="ctrtdate3" files="F1" intrvl="discrete">
      <location StartPos="991" EndPos="1000" width="10" RecSegNo="1"/>
      <labl>
        <![CDATA[Date treatment started [date]  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Date treatment started [date]  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        49
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtest [decade estimate of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtmm [month of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtyear [year of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtdate [date of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
replace trtyear=1905 if trtest==2
replace trtyear=1915 if trtest==3
replace trtyear=1925 if trtest==4
replace trtyear=1935 if trtest==5
replace trtyear=1945 if trtest==6
replace trtyear=1955 if trtest==7
replace trtyear=1965 if trtest==8
replace trtyear=1975 if trtest==9
replace trtyear=1985 if trtest==10
replace trtyear=1995 if trtest==11
recode trtyear 9999=.
gen trtdate=mdy(trtmm,15,trtyear) if trtmm~=. & trtyear~=.
replace trtdate=mdy(6,15,trtyear) if trtmm==. & trtyear~=.reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V222" name="ctrtdatex3" files="F1" intrvl="discrete">
      <location StartPos="1001" EndPos="1010" width="10" RecSegNo="1"/>
      <labl>
        Whether trtdate is an estimate [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether treatment date is an estimate [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        49
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtdatex (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
gen trtdatex=2 if trtyear~=.
replace trtdatex=4 if trtmm==. & trtyear~=.
replace trtdatex=5 if trtest~=. & trtyear~=.
la val trtdatex* datex
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V223" name="ctrtdate4" files="F1" intrvl="discrete">
      <location StartPos="1011" EndPos="1020" width="10" RecSegNo="1"/>
      <labl>
        <![CDATA[Date treatment started [date]  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Date treatment started [date]  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtest [decade estimate of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtmm [month of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtyear [year of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtdate [date of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
replace trtyear=1905 if trtest==2
replace trtyear=1915 if trtest==3
replace trtyear=1925 if trtest==4
replace trtyear=1935 if trtest==5
replace trtyear=1945 if trtest==6
replace trtyear=1955 if trtest==7
replace trtyear=1965 if trtest==8
replace trtyear=1975 if trtest==9
replace trtyear=1985 if trtest==10
replace trtyear=1995 if trtest==11
recode trtyear 9999=.
gen trtdate=mdy(trtmm,15,trtyear) if trtmm~=. & trtyear~=.
replace trtdate=mdy(6,15,trtyear) if trtmm==. & trtyear~=.reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V224" name="ctrtdatex4" files="F1" intrvl="discrete">
      <location StartPos="1021" EndPos="1030" width="10" RecSegNo="1"/>
      <labl>
        Whether trtdate is an estimate [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether treatment date is an estimate [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtdatex (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
gen trtdatex=2 if trtyear~=.
replace trtdatex=4 if trtmm==. & trtyear~=.
replace trtdatex=5 if trtest~=. & trtyear~=.
la val trtdatex* datex
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V225" name="ctrtdate5" files="F1" intrvl="discrete">
      <location StartPos="1031" EndPos="1040" width="10" RecSegNo="1"/>
      <labl>
        <![CDATA[Date treatment started [date]  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          <![CDATA[Date treatment started [date]  [wide]]]>
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        2
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtest [decade estimate of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtmm [month of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtyear [year of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)
variable: trtdate [date of contact treatment start date] (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
replace trtyear=1905 if trtest==2
replace trtyear=1915 if trtest==3
replace trtyear=1925 if trtest==4
replace trtyear=1935 if trtest==5
replace trtyear=1945 if trtest==6
replace trtyear=1955 if trtest==7
replace trtyear=1965 if trtest==8
replace trtyear=1975 if trtest==9
replace trtyear=1985 if trtest==10
replace trtyear=1995 if trtest==11
recode trtyear 9999=.
gen trtdate=mdy(trtmm,15,trtyear) if trtmm~=. & trtyear~=.
replace trtdate=mdy(6,15,trtyear) if trtmm==. & trtyear~=.reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V226" name="ctrtdatex5" files="F1" intrvl="discrete">
      <location StartPos="1041" EndPos="1050" width="10" RecSegNo="1"/>
      <labl>
        Whether trtdate is an estimate [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether treatment date is an estimate [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        2
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtdatex (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
gen trtdatex=2 if trtyear~=.
replace trtdatex=4 if trtmm==. & trtyear~=.
replace trtdatex=5 if trtest~=. & trtyear~=.
la val trtdatex* datex
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V227" name="ctrtplace1" files="F1" intrvl="discrete">
      <location StartPos="1051" EndPos="1054" width="4" RecSegNo="1"/>
      <labl>
        Place of treatment [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Place of treatment [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1641
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtplace (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V228" name="ctrtplace2" files="F1" intrvl="discrete">
      <location StartPos="1055" EndPos="1058" width="4" RecSegNo="1"/>
      <labl>
        Place of treatment [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Place of treatment [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        287
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtplace (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V229" name="ctrtplace3" files="F1" intrvl="discrete">
      <location StartPos="1059" EndPos="1062" width="4" RecSegNo="1"/>
      <labl>
        Place of treatment [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Place of treatment [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        49
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtplace (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V230" name="ctrtplace4" files="F1" intrvl="discrete">
      <location StartPos="1063" EndPos="1066" width="4" RecSegNo="1"/>
      <labl>
        Place of treatment [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Place of treatment [wide]
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        5
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtplace (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V231" name="ctrtplace5" files="F1" intrvl="discrete">
      <location StartPos="1067" EndPos="1070" width="4" RecSegNo="1"/>
      <labl>
        Place of treatment [wide] (D)
      </labl>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        <![CDATA[variable: trtplace (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V232" name="ccerttbcon1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1071" EndPos="1071" width="1" RecSegNo="1"/>
      <labl>
        Are you sure it was TB? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Are you sure it was TB? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        81
      </sumStat>
      <sumStat type="invd">
        12830
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Unsure/unlikely
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Certain
        </labl>
        <catStat type="freq">
          43
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Probable
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          37
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12830
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: certtbcon (table[s]: tb_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V233" name="ccerttbcon2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1072" EndPos="1072" width="1" RecSegNo="1"/>
      <labl>
        Are you sure it was TB? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Are you sure it was TB? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        18
      </sumStat>
      <sumStat type="invd">
        12893
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Unsure/unlikely
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Certain
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Probable
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12893
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: certtbcon (table[s]: tb_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V234" name="ccerttbcon3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1073" EndPos="1073" width="1" RecSegNo="1"/>
      <labl>
        Are you sure it was TB? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Are you sure it was TB? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Unsure/unlikely
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Certain
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Probable
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: certtbcon (table[s]: tb_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V235" name="ccerttbcon4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1074" EndPos="1074" width="1" RecSegNo="1"/>
      <labl>
        Are you sure it was TB? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Are you sure it was TB? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        0
      </sumStat>
      <sumStat type="invd">
        12911
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Unsure/unlikely
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Certain
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Probable
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12911
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: certtbcon (table[s]: tb_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V236" name="ccerttbcon5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1075" EndPos="1075" width="1" RecSegNo="1"/>
      <labl>
        Are you sure it was TB? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Are you sure it was TB? [wide]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        0
      </sumStat>
      <sumStat type="invd">
        12911
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Unsure/unlikely
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Certain
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Probable
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12911
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: certtbcon (table[s]: tb_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V237" name="cwardvisit1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1076" EndPos="1076" width="1" RecSegNo="1"/>
      <labl>
        Did you visit them on the TB ward? Did you act as guardian? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you visit them on the TB ward? Did you act as guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        963
      </sumStat>
      <sumStat type="invd">
        11948
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Guardian
        </labl>
        <catStat type="freq">
          204
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neither
        </labl>
        <catStat type="freq">
          352
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visit
        </labl>
        <catStat type="freq">
          380
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          27
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11948
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: wardvisit (table[s]:  tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V238" name="cwardvisit2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1077" EndPos="1077" width="1" RecSegNo="1"/>
      <labl>
        Did you visit them on the TB ward? Did you act as guardian? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you visit them on the TB ward? Did you act as guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        146
      </sumStat>
      <sumStat type="invd">
        12765
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Guardian
        </labl>
        <catStat type="freq">
          30
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neither
        </labl>
        <catStat type="freq">
          47
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visit
        </labl>
        <catStat type="freq">
          61
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12765
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: wardvisit (table[s]:  tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V239" name="cwardvisit3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1078" EndPos="1078" width="1" RecSegNo="1"/>
      <labl>
        Did you visit them on the TB ward? Did you act as guardian? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you visit them on the TB ward? Did you act as guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        21
      </sumStat>
      <sumStat type="invd">
        12890
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Guardian
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neither
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visit
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12890
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: wardvisit (table[s]:  tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V240" name="cwardvisit4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1079" EndPos="1079" width="1" RecSegNo="1"/>
      <labl>
        Did you visit them on the TB ward? Did you act as guardian? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you visit them on the TB ward? Did you act as guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Guardian
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neither
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visit
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: wardvisit (table[s]:  tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V241" name="cwardvisit5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1080" EndPos="1080" width="1" RecSegNo="1"/>
      <labl>
        Did you visit them on the TB ward? Did you act as guardian? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you visit them on the TB ward? Did you act as guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1
      </sumStat>
      <sumStat type="invd">
        12910
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Guardian
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neither
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visit
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12910
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: wardvisit (table[s]:  tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V242" name="crelship1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1081" EndPos="1082" width="2" RecSegNo="1"/>
      <labl>
        <![CDATA[What relationship is this person to you  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          What relationship is this person to you?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <sumStat type="vald">
        1673
      </sumStat>
      <sumStat type="invd">
        11238
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No informant
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Relative
        </labl>
        <catStat type="freq">
          141
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neighbour
        </labl>
        <catStat type="freq">
          91
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visitor to h/hold
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Friend
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Colleague at work
        </labl>
        <catStat type="freq">
          17
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Someone visited
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Self
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Parent/step-parent
        </labl>
        <catStat type="freq">
          346
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Spouse
        </labl>
        <catStat type="freq">
          168
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Sibling
        </labl>
        <catStat type="freq">
          458
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Child
        </labl>
        <catStat type="freq">
          98
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Uncle/aunt
        </labl>
        <catStat type="freq">
          99
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          G/mother/father/step
        </labl>
        <catStat type="freq">
          47
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Mother/father-inlaw
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          16
        </catValu>
        <labl>
          Sister/brother-inlaw
        </labl>
        <catStat type="freq">
          30
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          17
        </catValu>
        <labl>
          Cousin
        </labl>
        <catStat type="freq">
          35
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          18
        </catValu>
        <labl>
          Nephew/niece
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Wifemate
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Grandson/daughter
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Uncle/aunt in-law
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Son/daughter in-law
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Distant cousin/relation
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          76
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11238
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: relship (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V243" name="crelship2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1083" EndPos="1084" width="2" RecSegNo="1"/>
      <labl>
        <![CDATA[What relationship is this person to you  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          What relationship is this person to you?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <sumStat type="vald">
        295
      </sumStat>
      <sumStat type="invd">
        12616
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No informant
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Relative
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neighbour
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visitor to h/hold
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Friend
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Colleague at work
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Someone visited
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Self
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Parent/step-parent
        </labl>
        <catStat type="freq">
          62
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Spouse
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Sibling
        </labl>
        <catStat type="freq">
          82
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Child
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Uncle/aunt
        </labl>
        <catStat type="freq">
          23
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          G/mother/father/step
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Mother/father-inlaw
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          16
        </catValu>
        <labl>
          Sister/brother-inlaw
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          17
        </catValu>
        <labl>
          Cousin
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          18
        </catValu>
        <labl>
          Nephew/niece
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Wifemate
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Grandson/daughter
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Uncle/aunt in-law
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Son/daughter in-law
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Distant cousin/relation
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12616
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: relship (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V244" name="crelship3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1085" EndPos="1086" width="2" RecSegNo="1"/>
      <labl>
        <![CDATA[What relationship is this person to you  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          What relationship is this person to you?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <sumStat type="vald">
        49
      </sumStat>
      <sumStat type="invd">
        12862
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No informant
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Relative
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neighbour
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visitor to h/hold
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Friend
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Colleague at work
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Someone visited
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Self
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Parent/step-parent
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Spouse
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Sibling
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Child
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Uncle/aunt
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          G/mother/father/step
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Mother/father-inlaw
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          16
        </catValu>
        <labl>
          Sister/brother-inlaw
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          17
        </catValu>
        <labl>
          Cousin
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          18
        </catValu>
        <labl>
          Nephew/niece
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Wifemate
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Grandson/daughter
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Uncle/aunt in-law
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Son/daughter in-law
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Distant cousin/relation
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12862
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: relship (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V245" name="crelship4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1087" EndPos="1088" width="2" RecSegNo="1"/>
      <labl>
        <![CDATA[What relationship is this person to you  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          What relationship is this person to you?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <sumStat type="vald">
        5
      </sumStat>
      <sumStat type="invd">
        12906
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No informant
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Relative
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neighbour
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visitor to h/hold
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Friend
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Colleague at work
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Someone visited
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Self
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Parent/step-parent
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Spouse
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Sibling
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Child
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Uncle/aunt
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          G/mother/father/step
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Mother/father-inlaw
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          16
        </catValu>
        <labl>
          Sister/brother-inlaw
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          17
        </catValu>
        <labl>
          Cousin
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          18
        </catValu>
        <labl>
          Nephew/niece
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Wifemate
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Grandson/daughter
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Uncle/aunt in-law
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Son/daughter in-law
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Distant cousin/relation
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12906
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: relship (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V246" name="crelship5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1089" EndPos="1090" width="2" RecSegNo="1"/>
      <labl>
        <![CDATA[What relationship is this person to you  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          What relationship is this person to you?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="99"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No informant
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Relative
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Neighbour
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Visitor to h/hold
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Friend
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Colleague at work
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Someone visited
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Self
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Parent/step-parent
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Spouse
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          11
        </catValu>
        <labl>
          Sibling
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Child
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Uncle/aunt
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          14
        </catValu>
        <labl>
          G/mother/father/step
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Mother/father-inlaw
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          16
        </catValu>
        <labl>
          Sister/brother-inlaw
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          17
        </catValu>
        <labl>
          Cousin
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          18
        </catValu>
        <labl>
          Nephew/niece
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Wifemate
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Grandson/daughter
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Uncle/aunt in-law
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Son/daughter in-law
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Distant cousin/relation
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: relship (table[s]:  tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V247" name="ccontaccon1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1091" EndPos="1091" width="1" RecSegNo="1"/>
      <labl>
        Did you have contact with them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you have contact with them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        963
      </sumStat>
      <sumStat type="invd">
        11948
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          191
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          753
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11948
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaccon (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V248" name="ccontaccon2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1092" EndPos="1092" width="1" RecSegNo="1"/>
      <labl>
        Did you have contact with them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you have contact with them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        146
      </sumStat>
      <sumStat type="invd">
        12765
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          33
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          112
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12765
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaccon (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V249" name="ccontaccon3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1093" EndPos="1093" width="1" RecSegNo="1"/>
      <labl>
        Did you have contact with them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you have contact with them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        21
      </sumStat>
      <sumStat type="invd">
        12890
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12890
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaccon (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V250" name="ccontaccon4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1094" EndPos="1094" width="1" RecSegNo="1"/>
      <labl>
        Did you have contact with them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you have contact with them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaccon (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V251" name="ccontaccon5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1095" EndPos="1095" width="1" RecSegNo="1"/>
      <labl>
        Did you have contact with them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you have contact with them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1
      </sumStat>
      <sumStat type="invd">
        12910
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12910
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaccon (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V252" name="ccough1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1096" EndPos="1096" width="1" RecSegNo="1"/>
      <labl>
        <![CDATA[When you saw them, when they had TB Did this person have a cough?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          When you saw them, when they had TB Did this person have a cough?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1463
      </sumStat>
      <sumStat type="invd">
        11448
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          87
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1332
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          41
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11448
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: cough (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V253" name="ccough2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1097" EndPos="1097" width="1" RecSegNo="1"/>
      <labl>
        <![CDATA[When you saw them, when they had TB Did this person have a cough?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          When you saw them, when they had TB Did this person have a cough?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        261
      </sumStat>
      <sumStat type="invd">
        12650
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          236
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12650
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: cough (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V254" name="ccough3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1098" EndPos="1098" width="1" RecSegNo="1"/>
      <labl>
        <![CDATA[When you saw them, when they had TB Did this person have a cough?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          When you saw them, when they had TB Did this person have a cough?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        44
      </sumStat>
      <sumStat type="invd">
        12867
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          36
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12867
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: cough (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V255" name="ccough4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1099" EndPos="1099" width="1" RecSegNo="1"/>
      <labl>
        <![CDATA[When you saw them, when they had TB Did this person have a cough?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          When you saw them, when they had TB Did this person have a cough?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        4
      </sumStat>
      <sumStat type="invd">
        12907
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12907
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: cough (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V256" name="ccough5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1100" EndPos="1100" width="1" RecSegNo="1"/>
      <labl>
        <![CDATA[When you saw them, when they had TB Did this person have a cough?  [wide] (D)]]>
      </labl>
      <qstn>
        <qstnLit>
          When you saw them, when they had TB Did this person have a cough?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: cough (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V257" name="cnurseill1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1101" EndPos="1101" width="1" RecSegNo="1"/>
      <labl>
        Did you nurse this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you nurse this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1463
      </sumStat>
      <sumStat type="invd">
        11448
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1015
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          445
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11448
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: nurseill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V258" name="cnurseill2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1102" EndPos="1102" width="1" RecSegNo="1"/>
      <labl>
        Did you nurse this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you nurse this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        261
      </sumStat>
      <sumStat type="invd">
        12650
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          189
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          72
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12650
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: nurseill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V259" name="cnurseill3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1103" EndPos="1103" width="1" RecSegNo="1"/>
      <labl>
        Did you nurse this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you nurse this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        44
      </sumStat>
      <sumStat type="invd">
        12867
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          37
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12867
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: nurseill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V260" name="cnurseill4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1104" EndPos="1104" width="1" RecSegNo="1"/>
      <labl>
        Did you nurse this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you nurse this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        4
      </sumStat>
      <sumStat type="invd">
        12907
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12907
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: nurseill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V261" name="cnurseill5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1105" EndPos="1105" width="1" RecSegNo="1"/>
      <labl>
        Did you nurse this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you nurse this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: nurseill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V262" name="chouseill1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1106" EndPos="1106" width="1" RecSegNo="1"/>
      <labl>
        Did you live in the same household as them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you live in the same household as them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1463
      </sumStat>
      <sumStat type="invd">
        11448
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          723
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          735
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11448
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: houseill (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V263" name="chouseill2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1107" EndPos="1107" width="1" RecSegNo="1"/>
      <labl>
        Did you live in the same household as them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you live in the same household as them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        261
      </sumStat>
      <sumStat type="invd">
        12650
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          144
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          117
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12650
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: houseill (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V264" name="chouseill3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1108" EndPos="1108" width="1" RecSegNo="1"/>
      <labl>
        Did you live in the same household as them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you live in the same household as them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        44
      </sumStat>
      <sumStat type="invd">
        12867
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          24
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12867
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: houseill (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V265" name="chouseill4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1109" EndPos="1109" width="1" RecSegNo="1"/>
      <labl>
        Did you live in the same household as them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you live in the same household as them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        4
      </sumStat>
      <sumStat type="invd">
        12907
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12907
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: houseill (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V266" name="chouseill5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1110" EndPos="1110" width="1" RecSegNo="1"/>
      <labl>
        Did you live in the same household as them while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you live in the same household as them while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: houseill (table[s]: tb_contact, tb_contactto2007)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V267" name="csleepill1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1111" EndPos="1111" width="1" RecSegNo="1"/>
      <labl>
        Did you sleep in same room as this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you sleep in same room as this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        737
      </sumStat>
      <sumStat type="invd">
        12174
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          344
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          379
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12174
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: sleepill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V268" name="csleepill2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1112" EndPos="1112" width="1" RecSegNo="1"/>
      <labl>
        Did you sleep in same room as this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you sleep in same room as this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        117
      </sumStat>
      <sumStat type="invd">
        12794
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          73
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          43
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12794
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: sleepill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V269" name="csleepill3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1113" EndPos="1113" width="1" RecSegNo="1"/>
      <labl>
        Did you sleep in same room as this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you sleep in same room as this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        20
      </sumStat>
      <sumStat type="invd">
        12891
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12891
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: sleepill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V270" name="csleepill4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1114" EndPos="1114" width="1" RecSegNo="1"/>
      <labl>
        Did you sleep in same room as this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you sleep in same room as this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: sleepill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V271" name="csleepill5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1115" EndPos="1115" width="1" RecSegNo="1"/>
      <labl>
        Did you sleep in same room as this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Did you sleep in same room as this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: sleepill (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V272" name="ccontacind1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1116" EndPos="1116" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person indoors? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1428
      </sumStat>
      <sumStat type="invd">
        11483
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never indoors
        </labl>
        <catStat type="freq">
          419
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Sometimes indoors
        </labl>
        <catStat type="freq">
          901
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          108
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11483
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacind (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V273" name="ccontacind2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1117" EndPos="1117" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person indoors? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        254
      </sumStat>
      <sumStat type="invd">
        12657
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never indoors
        </labl>
        <catStat type="freq">
          92
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Sometimes indoors
        </labl>
        <catStat type="freq">
          148
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12657
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacind (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V274" name="ccontacind3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1118" EndPos="1118" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person indoors? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        44
      </sumStat>
      <sumStat type="invd">
        12867
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never indoors
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Sometimes indoors
        </labl>
        <catStat type="freq">
          29
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12867
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacind (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V275" name="ccontacind4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1119" EndPos="1119" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person indoors? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        4
      </sumStat>
      <sumStat type="invd">
        12907
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never indoors
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Sometimes indoors
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12907
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacind (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V276" name="ccontacind5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1120" EndPos="1120" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person indoors? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never indoors
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Sometimes indoors
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacind (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V277" name="ccontaclong1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1121" EndPos="1121" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person prolonged? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1428
      </sumStat>
      <sumStat type="invd">
        11483
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never prolonged
        </labl>
        <catStat type="freq">
          520
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Prolonged (hours)
        </labl>
        <catStat type="freq">
          784
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          124
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11483
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaclong (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V278" name="ccontaclong2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1122" EndPos="1122" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person prolonged? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        254
      </sumStat>
      <sumStat type="invd">
        12657
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never prolonged
        </labl>
        <catStat type="freq">
          99
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Prolonged (hours)
        </labl>
        <catStat type="freq">
          137
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12657
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaclong (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V279" name="ccontaclong3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1123" EndPos="1123" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person prolonged? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        44
      </sumStat>
      <sumStat type="invd">
        12867
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never prolonged
        </labl>
        <catStat type="freq">
          16
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Prolonged (hours)
        </labl>
        <catStat type="freq">
          27
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12867
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaclong (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V280" name="ccontaclong4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1124" EndPos="1124" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person prolonged? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        4
      </sumStat>
      <sumStat type="invd">
        12907
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never prolonged
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Prolonged (hours)
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12907
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaclong (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V281" name="ccontaclong5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1125" EndPos="1125" width="1" RecSegNo="1"/>
      <labl>
        Was your contact with this person prolonged? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          Was your contact with this person indoors?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never prolonged
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Prolonged (hours)
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contaclong (table[s]: tb_contact, tb_contactto2007, tbold_contact)

<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V282" name="ccontacdays1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1126" EndPos="1126" width="1" RecSegNo="1"/>
      <labl>
        On how many days did you see this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          On how many days did you see this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1463
      </sumStat>
      <sumStat type="invd">
        11448
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          0 days
        </labl>
        <catStat type="freq">
          66
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          1 day
        </labl>
        <catStat type="freq">
          106
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          2-5 days
        </labl>
        <catStat type="freq">
          303
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          6-10 days
        </labl>
        <catStat type="freq">
          104
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          11-20 days
        </labl>
        <catStat type="freq">
          122
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          &gt;20 days
        </labl>
        <catStat type="freq">
          645
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          117
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11448
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacdays (table[s]: tb_contact, tb_contactto2007, tbold_contact)
<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V283" name="ccontacdays2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1127" EndPos="1127" width="1" RecSegNo="1"/>
      <labl>
        On how many days did you see this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          On how many days did you see this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        261
      </sumStat>
      <sumStat type="invd">
        12650
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          0 days
        </labl>
        <catStat type="freq">
          21
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          1 day
        </labl>
        <catStat type="freq">
          26
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          2-5 days
        </labl>
        <catStat type="freq">
          53
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          6-10 days
        </labl>
        <catStat type="freq">
          9
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          11-20 days
        </labl>
        <catStat type="freq">
          25
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          &gt;20 days
        </labl>
        <catStat type="freq">
          109
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12650
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacdays (table[s]: tb_contact, tb_contactto2007, tbold_contact)
<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V284" name="ccontacdays3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1128" EndPos="1128" width="1" RecSegNo="1"/>
      <labl>
        On how many days did you see this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          On how many days did you see this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        44
      </sumStat>
      <sumStat type="invd">
        12867
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          0 days
        </labl>
        <catStat type="freq">
          6
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          1 day
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          2-5 days
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          6-10 days
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          11-20 days
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          &gt;20 days
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12867
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacdays (table[s]: tb_contact, tb_contactto2007, tbold_contact)
<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V285" name="ccontacdays4" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1129" EndPos="1129" width="1" RecSegNo="1"/>
      <labl>
        On how many days did you see this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          On how many days did you see this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        4
      </sumStat>
      <sumStat type="invd">
        12907
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          0 days
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          1 day
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          2-5 days
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          6-10 days
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          11-20 days
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          &gt;20 days
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12907
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacdays (table[s]: tb_contact, tb_contactto2007, tbold_contact)
<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V286" name="ccontacdays5" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1130" EndPos="1130" width="1" RecSegNo="1"/>
      <labl>
        On how many days did you see this person while they were ill? [wide] (D)
      </labl>
      <qstn>
        <qstnLit>
          On how many days did you see this person while they were ill?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        2
      </sumStat>
      <sumStat type="invd">
        12909
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          0 days
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          1 day
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          2-5 days
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          6-10 days
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          11-20 days
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          &gt;20 days
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12909
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: contacdays (table[s]: tb_contact, tb_contactto2007, tbold_contact)
<the exposure contacts are processed separately first:>
reshape wide idcontac famcont contvil contplace trtdate trtdatex trtplace certtbcon wardvisit relship contaccon cough nurseill houseill sleepill contacind contaclong contacdays, i(ident frm_intdate) j(n)
rename * c*
rename (cident cidcontac* cfrm_intdate cnumtbcont) (ident idcontac* intdate numtbcont)
save ${tempfiles}\tbcontacts_wide, replace
<and then merged into the main file:>
merge m:1 ident intdate using ${tempfiles}\tbcontacts_wide, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V287" name="drinkalcoh" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1131" EndPos="1131" width="1" RecSegNo="1"/>
      <labl>
        Have you ever drunk alcohol
      </labl>
      <qstn>
        <qstnLit>
          Have you ever drunk alcohol?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2192
      </sumStat>
      <sumStat type="invd">
        10719
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1361
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          826
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10719
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V288" name="drinkyears" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1132" EndPos="1133" width="2" RecSegNo="1"/>
      <labl>
        If yes: For how many years have/did you drunk alcohol?
      </labl>
      <qstn>
        <qstnLit>
          If (drinkalcoh)yes : For how many years have/did you drunk alcohol?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        826
      </sumStat>
      <sumStat type="invd">
        12085
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V289" name="drinkstill" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1134" EndPos="1134" width="1" RecSegNo="1"/>
      <labl>
        Do you still drink?
      </labl>
      <qstn>
        <qstnLit>
          Do you still drink?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        826
      </sumStat>
      <sumStat type="invd">
        12085
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          386
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          436
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12085
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V290" name="drinkstop" files="F1" dcml="0" intrvl="contin">
      <location StartPos="1135" EndPos="1138" width="4" RecSegNo="1"/>
      <labl>
        Year stopped drinking alcohol (D)
      </labl>
      <qstn>
        <qstnLit>
          Year stopped drinking alcohol
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1958" max="2014"/>
      </valrng>
      <sumStat type="vald">
        377
      </sumStat>
      <sumStat type="invd">
        12534
      </sumStat>
      <codInstr>
        <![CDATA[variable: drinkstest [decade estimate of drinking stop] (table[s]: tbold_part1/2, tb_tbo, tbold_control)
variable: drinkstop [year of drinking stop] (table[s]: tbold_part1/2, tb_tbo, tbold_control)

replace drinkstop=1895 if drinkstest==1
replace drinkstop=1905 if drinkstest==2
replace drinkstop=1915 if drinkstest==3
replace drinkstop=1925 if drinkstest==4
replace drinkstop=1935 if drinkstest==5
replace drinkstop=1945 if drinkstest==6
replace drinkstop=1955 if drinkstest==7
replace drinkstop=1965 if drinkstest==8
replace drinkstop=1975 if drinkstest==9
replace drinkstop=1985 if drinkstest==10
replace drinkstop=1995 if drinkstest==11
replace drinkstop=1895 if drinkstest==12
replace drinkstop=1907 if drinkstest==13
replace drinkstop=1924 if drinkstest==14
replace drinkstop=1940 if drinkstest==15
replace drinkstop=1951 if drinkstest==16
replace drinkstop=1960 if drinkstest==17
replace drinkstop=1970 if drinkstest==18
recode drinkstop 0=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V291" name="drinkstopx" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1139" EndPos="1139" width="1" RecSegNo="1"/>
      <labl>
        Whether year of stopping drinking is estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          Whether year of stopping drinking is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        377
      </sumStat>
      <sumStat type="invd">
        12534
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          376
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12534
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: drinkstest [decade estimate of drinking stop] (table[s]: tbold_part1/2, tb_tbo, tbold_control)
variable: drinkstop [year of drinking stop] (table[s]: tbold_part1/2, tb_tbo, tbold_control)

gen drinkstopx=0 if drinkstop~=. & drinkstop~=9999
replace drinkstopx=1 if drinkstest~=. & drinkstop~=. & drinkstop~=9999
la val drinkstopx yesno]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V292" name="drinkfreq" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1140" EndPos="1140" width="1" RecSegNo="1"/>
      <labl>
        How frequently do/did you drink alcohol?
      </labl>
      <qstn>
        <qstnLit>
          How frequently do/did you drink alcohol?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        826
      </sumStat>
      <sumStat type="invd">
        12085
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Every day
        </labl>
        <catStat type="freq">
          131
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          More than once a week
        </labl>
        <catStat type="freq">
          245
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Once a week
        </labl>
        <catStat type="freq">
          120
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Less than once a week
        </labl>
        <catStat type="freq">
          313
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          17
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12085
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V293" name="smoketobac" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1141" EndPos="1141" width="1" RecSegNo="1"/>
      <labl>
        Have you ever smoked tobacco? (this does not include snuff or chewing tobacco)
      </labl>
      <qstn>
        <qstnLit>
          Have you ever smoked tobacco? (this does not include snuff or chewing tobacco)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        8493
      </sumStat>
      <sumStat type="invd">
        4418
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          6603
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1824
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          66
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          4418
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V294" name="smokewhat" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1142" EndPos="1142" width="1" RecSegNo="1"/>
      <labl>
        If yes, what did (or do) you smoke?
      </labl>
      <qstn>
        <qstnLit>
          If (smoketobac) yes, what did (or do) you smoke?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1824
      </sumStat>
      <sumStat type="invd">
        11087
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Cigarettes
        </labl>
        <catStat type="freq">
          1423
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Home-rolled
        </labl>
        <catStat type="freq">
          347
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Pipe
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          42
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11087
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V295" name="smokenocig" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1143" EndPos="1143" width="1" RecSegNo="1"/>
      <labl>
        How many did/do you smoke each day?
      </labl>
      <qstn>
        <qstnLit>
          How many did/do you smoke each day?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1774
      </sumStat>
      <sumStat type="invd">
        11137
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          &lt;5 day
        </labl>
        <catStat type="freq">
          605
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          5-10 day
        </labl>
        <catStat type="freq">
          608
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          11-20 day
        </labl>
        <catStat type="freq">
          400
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          &gt;20 day
        </labl>
        <catStat type="freq">
          141
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11137
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V296" name="smokeyears" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1144" EndPos="1145" width="2" RecSegNo="1"/>
      <labl>
        For how many years have/did you smoke(d)?
      </labl>
      <qstn>
        <qstnLit>
          For how many years have/did you smoke(d)?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        1824
      </sumStat>
      <sumStat type="invd">
        11087
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V297" name="smokestill" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1146" EndPos="1146" width="1" RecSegNo="1"/>
      <labl>
        Do you still smoke?
      </labl>
      <qstn>
        <qstnLit>
          Do you still smoke?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1824
      </sumStat>
      <sumStat type="invd">
        11087
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1300
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          505
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11087
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V298" name="smokestop" files="F1" dcml="0" intrvl="contin">
      <location StartPos="1147" EndPos="1150" width="4" RecSegNo="1"/>
      <labl>
        Year stopped smoking (D)
      </labl>
      <qstn>
        <qstnLit>
          If (smokestill) is No, Year stopped smoking
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1950" max="2018"/>
      </valrng>
      <sumStat type="vald">
        1280
      </sumStat>
      <sumStat type="invd">
        11631
      </sumStat>
      <codInstr>
        <![CDATA[variable: smokestest [decade estimate of smoking stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: smokestop [year estimate of smoking stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

replace smokestop=1895 if smokestest==1
replace smokestop=1905 if smokestest==2
replace smokestop=1915 if smokestest==3
replace smokestop=1925 if smokestest==4
replace smokestop=1935 if smokestest==5
replace smokestop=1945 if smokestest==6
replace smokestop=1955 if smokestest==7
replace smokestop=1965 if smokestest==8
replace smokestop=1975 if smokestest==9
replace smokestop=1985 if smokestest==10
replace smokestop=1995 if smokestest==11
replace smokestop=1895 if smokestest==12
replace smokestop=1907 if smokestest==13
replace smokestop=1924 if smokestest==14
replace smokestop=1940 if smokestest==15
replace smokestop=1951 if smokestest==16
replace smokestop=1960 if smokestest==17
replace smokestop=1970 if smokestest==18
recode smokestop 0=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V299" name="smokestopx" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1151" EndPos="1151" width="1" RecSegNo="1"/>
      <labl>
        Whether year of stopping smoking is estimated (D)
      </labl>
      <qstn>
        <qstnLit>
          Is the year of stopping smoking is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1280
      </sumStat>
      <sumStat type="invd">
        11631
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1275
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11631
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: smokestest [decade estimate of smoking stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: smokestop [year estimate of smoking stop] (table[s]: tb_tbx, tb_tbxto2007, tbold_part1/2, tb_tbo, tb_tboto2007, tbold_control)

gen smokestopx=0 if smokestop~=. & smokestop~=9999
replace smokestopx=1 if smokestest~=. & smokestop~=. & smokestop~=9999
la val smokestopx yesno]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V300" name="cooking" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1152" EndPos="1152" width="1" RecSegNo="1"/>
      <labl>
        Before you became ill, how often did you do the cooking?
      </labl>
      <qstn>
        <qstnLit>
          Before you became ill, how often did you do the cooking?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1760
      </sumStat>
      <sumStat type="invd">
        11151
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Every day
        </labl>
        <catStat type="freq">
          742
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          At least once a week but not every day
        </labl>
        <catStat type="freq">
          175
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Sometimes but &lt; once per week
        </labl>
        <catStat type="freq">
          311
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Never
        </labl>
        <catStat type="freq">
          522
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11151
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V301" name="cookcarrid" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1153" EndPos="1153" width="1" RecSegNo="1"/>
      <labl>
        Before becoming ill, was child carried by mother while they were cooking?
      </labl>
      <qstn>
        <qstnLit>
          Before becoming ill, was child carried by mother while they were cooking?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1
      </sumStat>
      <sumStat type="invd">
        12910
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Every day
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          At least once a week but not every day
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Sometimes but &lt; once per week
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Never
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12910
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V302" name="billsmkiri" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1154" EndPos="1154" width="1" RecSegNo="1"/>
      <labl>
        Before becaming ill, did cooking smoke make you cough or irritate your eyes?
      </labl>
      <qstn>
        <qstnLit>
          Before becaming ill, did cooking smoke make you cough or irritate your eyes?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        963
      </sumStat>
      <sumStat type="invd">
        11948
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          318
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Irritated eyes
        </labl>
        <catStat type="freq">
          402
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Made them cough
        </labl>
        <catStat type="freq">
          150
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          86
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11948
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V303" name="smkiriwhen" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1155" EndPos="1155" width="1" RecSegNo="1"/>
      <labl>
        How often does/did the smoke irritate you?
      </labl>
      <qstn>
        <qstnLit>
          How often does/did the smoke irritate you?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        643
      </sumStat>
      <sumStat type="invd">
        12268
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Every day
        </labl>
        <catStat type="freq">
          47
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          At least once a week but not every day
        </labl>
        <catStat type="freq">
          104
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Sometimes but &lt; once per week
        </labl>
        <catStat type="freq">
          443
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Never
        </labl>
        <catStat type="freq">
          26
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          23
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12268
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V304" name="dryfiretyp" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1156" EndPos="1156" width="1" RecSegNo="1"/>
      <labl>
        What sort of cooking fire did you usually use in the dry season?
      </labl>
      <qstn>
        <qstnLit>
          What sort of cooking fire did you usually use in the dry season?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        989
      </sumStat>
      <sumStat type="invd">
        11922
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Open fire (e.g. 3-stonetype)
        </labl>
        <catStat type="freq">
          917
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Kinda fire
        </labl>
        <catStat type="freq">
          33
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Paraffin stove
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Gas stove
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Electric stove
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Others
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11922
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V305" name="dryfirepl" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1157" EndPos="1157" width="1" RecSegNo="1"/>
      <labl>
        Where is the fire usually in the dry season?
      </labl>
      <qstn>
        <qstnLit>
          Where is the fire usually in the dry season?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        989
      </sumStat>
      <sumStat type="invd">
        11922
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Outside
        </labl>
        <catStat type="freq">
          437
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          In a separate hut
        </labl>
        <catStat type="freq">
          490
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          In a hut where you eat, live or sleep
        </labl>
        <catStat type="freq">
          48
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          14
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11922
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V306" name="wetfiretyp" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1158" EndPos="1158" width="1" RecSegNo="1"/>
      <labl>
        What sort of cooking fire did you usually use in the wet season?
      </labl>
      <qstn>
        <qstnLit>
          What sort of cooking fire did you usually use in the wet season?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        989
      </sumStat>
      <sumStat type="invd">
        11922
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Open fire (e.g. 3-stonetype)
        </labl>
        <catStat type="freq">
          891
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Kinda fire
        </labl>
        <catStat type="freq">
          36
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Paraffin stove
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Gas stove
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Electric stove
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Others
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          35
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11922
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V307" name="wetfirepl" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1159" EndPos="1159" width="1" RecSegNo="1"/>
      <labl>
        Where is the fire usually in the wet season?
      </labl>
      <qstn>
        <qstnLit>
          Where is the fire usually in the wet season?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        989
      </sumStat>
      <sumStat type="invd">
        11922
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Outside
        </labl>
        <catStat type="freq">
          166
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          In a separate hut
        </labl>
        <catStat type="freq">
          643
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          In a hut where you eat, live or sleep
        </labl>
        <catStat type="freq">
          152
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          28
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11922
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V308" name="burnrepins" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1160" EndPos="1160" width="1" RecSegNo="1"/>
      <labl>
        Do you burn anything to keep insects away?
      </labl>
      <qstn>
        <qstnLit>
          Do you burn anything to keep insects away?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1761
      </sumStat>
      <sumStat type="invd">
        11150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1276
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          481
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V309" name="burnwhat" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1161" EndPos="1161" width="1" RecSegNo="1"/>
      <labl>
        What do you burn? [to keep insects away]
      </labl>
      <qstn>
        <qstnLit>
          What do you burn? [to keep insects away]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        481
      </sumStat>
      <sumStat type="invd">
        12430
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Coil
        </labl>
        <catStat type="freq">
          421
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Plants
        </labl>
        <catStat type="freq">
          36
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Dung
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          15
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12430
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V310" name="burnplace" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1162" EndPos="1162" width="1" RecSegNo="1"/>
      <labl>
        Where do you burn it? [to keep insects away]
      </labl>
      <qstn>
        <qstnLit>
          Where do you burn it? [to keep insects away]
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        481
      </sumStat>
      <sumStat type="invd">
        12430
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Outside
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          In a separate hut
        </labl>
        <catStat type="freq">
          462
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          In a hut where you eat, live or sleep
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          15
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12430
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V311" name="smokefish" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1163" EndPos="1163" width="1" RecSegNo="1"/>
      <labl>
        Do you smoke fish?
      </labl>
      <qstn>
        <qstnLit>
          Do you smoke fish?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1761
      </sumStat>
      <sumStat type="invd">
        11150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Never
        </labl>
        <catStat type="freq">
          1301
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Sometimes
        </labl>
        <catStat type="freq">
          334
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Frequently
        </labl>
        <catStat type="freq">
          13
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Commercial business
        </labl>
        <catStat type="freq">
          84
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          29
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V312" name="pregever" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1164" EndPos="1164" width="1" RecSegNo="1"/>
      <labl>
        Have you ever been pregnant?
      </labl>
      <qstn>
        <qstnLit>
          Have you ever been pregnant?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1996
      </sumStat>
      <sumStat type="invd">
        10915
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          174
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1667
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          155
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10915
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V313" name="pregnow" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1165" EndPos="1165" width="1" RecSegNo="1"/>
      <labl>
        Currently pregnant (D)
      </labl>
      <qstn>
        <qstnLit>
          Currently pregnant
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1682
      </sumStat>
      <sumStat type="invd">
        11229
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1510
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          132
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          37
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11229
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: pregnow [currently pregnant] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: pregres [pregnancy test result] (table[s]: tb_tbx, tb_tbxto2007, tb_tbo, tb_tboto2007)
variable: pregtest [pregnancy test result] (table[s]: tbold_part1/2, tbold_control)

replace pregnow=1 if pregres==1 | pregtest==1 | pregtestrp==1]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V314" name="pregmthnow" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1166" EndPos="1167" width="2" RecSegNo="1"/>
      <labl>
        Months pregnant (D)
      </labl>
      <qstn>
        <qstnLit>
          Months pregnant
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        112
      </sumStat>
      <sumStat type="invd">
        12799
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <codInstr>
        <![CDATA[variable: pregmthnow [months pregnant] (table[s]: tb_tbxto2007)
variable: prgmthsnow [months pregnant] (table[s]: tbold_part1/2, tbold_control)
variable: pregmthsnow [months pregnant] (table[s]: tb_tboto2007)

replace pregmthnow=prgmthsnow if pregmthnow==. & prgmthsnow~=.
replace pregmthnow=pregmthsnow if pregmthnow==. & pregmthsnow~=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V315" name="illstart" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1168" EndPos="1168" width="1" RecSegNo="1"/>
      <labl>
        Do you think your current illness started before of after the pregnancy?
      </labl>
      <qstn>
        <qstnLit>
          Do you think your current illness started before of after the pregnancy?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        11
      </sumStat>
      <sumStat type="invd">
        12900
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Before
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          After
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          About the same time
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12900
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V316" name="birthever" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1169" EndPos="1169" width="1" RecSegNo="1"/>
      <labl>
        Have you ever given birth (incl children who have died and stillbirths)?
      </labl>
      <qstn>
        <qstnLit>
          Have you ever given birth (incl children who have died and stillbirths)?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1667
      </sumStat>
      <sumStat type="invd">
        11244
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          29
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1634
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11244
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V317" name="totbirths" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1170" EndPos="1171" width="2" RecSegNo="1"/>
      <labl>
        Total number of births
      </labl>
      <qstn>
        <qstnLit>
          Total number of births
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        1634
      </sumStat>
      <sumStat type="invd">
        11277
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V318" name="recbirdate" files="F1" intrvl="discrete">
      <location StartPos="1172" EndPos="1181" width="10" RecSegNo="1"/>
      <labl>
        Date of most recent birth (D)
      </labl>
      <qstn>
        <qstnLit>
          Date of most recent birth
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1622
      </sumStat>
      <codInstr>
        <![CDATA[variable: recbirest [decade estimate of most recent birth] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: recbirmm [most recent birth month] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: recbiryear [most recent birth year] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

recode recbirmm 0=.
replace recbiryear=1895 if recbirest==1
replace recbiryear=1905 if recbirest==2
replace recbiryear=1915 if recbirest==3
replace recbiryear=1925 if recbirest==4
replace recbiryear=1935 if recbirest==5
replace recbiryear=1945 if recbirest==6
replace recbiryear=1955 if recbirest==7
replace recbiryear=1965 if recbirest==8
replace recbiryear=1975 if recbirest==9
replace recbiryear=1985 if recbirest==10
replace recbiryear=1995 if recbirest==11
replace recbiryear=1895 if recbirest==12
replace recbiryear=1907 if recbirest==13
replace recbiryear=1924 if recbirest==14
replace recbiryear=1940 if recbirest==15
replace recbiryear=1951 if recbirest==16
replace recbiryear=1960 if recbirest==17
replace recbiryear=1970 if recbirest==18
recode recbiryear 9999=. 0=.
gen recbirdate=mdy(recbirmm,15,recbiryear) if recbirmm~=. & recbiryear~=.
replace recbirdate=mdy(6,15,recbiryear) if recbirmm==. & recbiryear~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V319" name="recbirdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1182" EndPos="1182" width="1" RecSegNo="1"/>
      <labl>
        if recbirdate is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          If recbirdate is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        1622
      </sumStat>
      <sumStat type="invd">
        11289
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          1058
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          544
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11289
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: recbirest [decade estimate of most recent birth] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: recbirmm [most recent birth month] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: recbiryear [most recent birth year] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

gen recbirdatex=2 if recbiryear~=.
replace recbirdatex=4 if recbirmm==. & recbiryear~=.
replace recbirdatex=5 if recbirest~=. & recbiryear~=.
la val recbirdatex datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V320" name="recbirout" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1183" EndPos="1183" width="1" RecSegNo="1"/>
      <labl>
        Outcome of most recent birth
      </labl>
      <qstn>
        <qstnLit>
          Outcome of most recent birth
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        871
      </sumStat>
      <sumStat type="invd">
        12040
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Alive
        </labl>
        <catStat type="freq">
          705
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Livebirth but died
        </labl>
        <catStat type="freq">
          129
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Stillbirth
        </labl>
        <catStat type="freq">
          19
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12040
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V321" name="dmisabort" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1184" EndPos="1184" width="1" RecSegNo="1"/>
      <labl>
        Since last birth have you had miscarriage or abortion?
      </labl>
      <qstn>
        <qstnLit>
          Since last birth have you had miscarriage or abortion?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1634
      </sumStat>
      <sumStat type="invd">
        11277
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1511
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          103
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11277
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V322" name="dmisabdate" files="F1" intrvl="discrete">
      <location StartPos="1185" EndPos="1194" width="10" RecSegNo="1"/>
      <labl>
        Most recent date (of miscarriage or abortion since last birth) (D)
      </labl>
      <qstn>
        <qstnLit>
          Most recent date (of miscarriage or abortion since last birth)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        98
      </sumStat>
      <codInstr>
        <![CDATA[variable: dmisabest [decade estimate of most recent (since last birth) miscarriage/abortion] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: dmisabmm [most recent (since last birth) miscarriage/abortion month] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: dmisabyear [most recent (since last birth) miscarriage/abortion year] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

gen recbirdatex=2 if recbiryear~=.
replace recbirdatex=4 if recbirmm==. & recbiryear~=.
replace recbirdatex=5 if recbirest~=. & recbiryear~=.
la val recbirdatex datex]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V323" name="dmisabdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1195" EndPos="1195" width="1" RecSegNo="1"/>
      <labl>
        if dmisabdate is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          If dmisabdate is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        98
      </sumStat>
      <sumStat type="invd">
        12813
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          50
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          47
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12813
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: dmisabest [decade estimate of most recent (since last birth) miscarriage/abortion] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: dmisabmm [most recent (since last birth) miscarriage/abortion month] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: dmisabyear [most recent (since last birth) miscarriage/abortion year] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

recode dmisabmm 0=.
replace dmisabyear=1895 if dmisabest==1
replace dmisabyear=1905 if dmisabest==2
replace dmisabyear=1915 if dmisabest==3
replace dmisabyear=1925 if dmisabest==4
replace dmisabyear=1935 if dmisabest==5
replace dmisabyear=1945 if dmisabest==6
replace dmisabyear=1955 if dmisabest==7
replace dmisabyear=1965 if dmisabest==8
replace dmisabyear=1975 if dmisabest==9
replace dmisabyear=1985 if dmisabest==10
replace dmisabyear=1995 if dmisabest==11
replace dmisabyear=1895 if dmisabest==12
replace dmisabyear=1907 if dmisabest==13
replace dmisabyear=1924 if dmisabest==14
replace dmisabyear=1940 if dmisabest==15
replace dmisabyear=1951 if dmisabest==16
replace dmisabyear=1960 if dmisabest==17
replace dmisabyear=1970 if dmisabest==18
recode dmisabyear 9999=. 0=.
gen dmisabdate=mdy(dmisabmm,15,dmisabyear) if dmisabmm~=. & dmisabyear~=.
replace dmisabdate=mdy(6,15,dmisabyear) if dmisabmm==. & dmisabyear~=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V324" name="dmisabpmth" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1196" EndPos="1197" width="2" RecSegNo="1"/>
      <labl>
        Gestation (of miscarriage or abortion since last birth)
      </labl>
      <qstn>
        <qstnLit>
          Gestation (of miscarriage or abortion since last birth)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        104
      </sumStat>
      <sumStat type="invd">
        12807
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V325" name="emisabort" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1198" EndPos="1198" width="1" RecSegNo="1"/>
      <labl>
        Have you ever had any miscarriage or abortion?
      </labl>
      <qstn>
        <qstnLit>
          Have you ever had any miscarriage or abortion?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        904
      </sumStat>
      <sumStat type="invd">
        12007
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          724
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          121
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          59
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12007
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V326" name="emisabdate" files="F1" intrvl="discrete">
      <location StartPos="1199" EndPos="1208" width="10" RecSegNo="1"/>
      <labl>
        Most recent date (of miscarriage or abortion ever) (D)
      </labl>
      <qstn>
        <qstnLit>
          Most recent date (of miscarriage or abortion ever)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        113
      </sumStat>
      <codInstr>
        <![CDATA[variable: emisabest [decade estimate of most recent miscarriage/abortion] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: emisabmm [most recent miscarriage/abortion month] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: emisabyear [most recent miscarriage/abortion year] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

recode emisabmm 0=.
replace emisabyear=1895 if emisabest==1
replace emisabyear=1905 if emisabest==2
replace emisabyear=1915 if emisabest==3
replace emisabyear=1925 if emisabest==4
replace emisabyear=1935 if emisabest==5
replace emisabyear=1945 if emisabest==6
replace emisabyear=1955 if emisabest==7
replace emisabyear=1965 if emisabest==8
replace emisabyear=1975 if emisabest==9
replace emisabyear=1985 if emisabest==10
replace emisabyear=1995 if emisabest==11
replace emisabyear=1895 if emisabest==12
replace emisabyear=1907 if emisabest==13
replace emisabyear=1924 if emisabest==14
replace emisabyear=1940 if emisabest==15
replace emisabyear=1951 if emisabest==16
replace emisabyear=1960 if emisabest==17
replace emisabyear=1970 if emisabest==18
recode emisabyear 9999=. 0=.
gen emisabdate=mdy(emisabmm,15,emisabyear) if emisabmm~=. & emisabyear~=.
replace emisabdate=mdy(6,15,emisabyear) if emisabmm==. & emisabyear~=.]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V327" name="emisabdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1209" EndPos="1209" width="1" RecSegNo="1"/>
      <labl>
        if emisabdate is an estimate (D)
      </labl>
      <qstn>
        <qstnLit>
          if emisabdate is an estimate
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        113
      </sumStat>
      <sumStat type="invd">
        12798
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          33
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          79
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12798
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: emisabest [decade estimate of most recent miscarriage/abortion] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: emisabmm [most recent miscarriage/abortion month] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)
variable: emisabyear [most recent miscarriage/abortion year] (table[s]: tb_tbxto2007, tbold_part1/2, tb_tboto2007, tbold_control)

gen emisabdatex=2 if emisabyear~=.
replace emisabdatex=4 if emisabmm==. & emisabyear~=.
replace emisabdatex=5 if emisabest~=. & emisabyear~=.
la val emisabdatex datex]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V328" name="emisabpmth" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1210" EndPos="1211" width="2" RecSegNo="1"/>
      <labl>
        Gestation (of miscarriage or abortion ever)
      </labl>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        121
      </sumStat>
      <sumStat type="invd">
        12790
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V329" name="othmedicin" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1212" EndPos="1212" width="1" RecSegNo="1"/>
      <labl>
        Have you been taking any medicines other than for TB in the last year?
      </labl>
      <qstn>
        <qstnLit>
          Have you been taking any medicines other than for TB in the last year?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3101
      </sumStat>
      <sumStat type="invd">
        9810
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1261
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1312
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          528
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9810
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V330" name="othmedgro" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1213" EndPos="1213" width="1" RecSegNo="1"/>
      <labl>
        Taking medicines (other that for TB) from the grocery/market (D)
      </labl>
      <qstn>
        <qstnLit>
          Taking medicines (other that for TB) from the grocery/market
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2573
      </sumStat>
      <sumStat type="invd">
        10338
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2325
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          248
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10338
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: othmedicin [taking other medicines] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght1 [where bought other medicines 1] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght2 [where bought other medicines 2] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght3 [where bought other medicines 3] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght4 [where bought other medicines 4] (table[s]: tbold_part1/2, tbold_control)

gen othmedgro=0 if othmedicin==1 | othmedicin==0
replace othmedgro=1 if wherebght1==1 | wherebght2==1 | wherebght3==1 | wherebght4==1]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V331" name="othmedhco" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1214" EndPos="1214" width="1" RecSegNo="1"/>
      <labl>
        Taking medicines (other that for TB) from the health centre (D)
      </labl>
      <qstn>
        <qstnLit>
          Taking medicines (other that for TB) from the health centre
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2573
      </sumStat>
      <sumStat type="invd">
        10338
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1489
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          1084
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10338
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: othmedicin [taking other medicines] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght1 [where bought other medicines 1] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght2 [where bought other medicines 2] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght3 [where bought other medicines 3] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght4 [where bought other medicines 4] (table[s]: tbold_part1/2, tbold_control)

gen othmedhco=0 if othmedicin==1 | othmedicin==0
replace othmedhc=1 if wherebght1==2 | wherebght2==2 | wherebght3==2 | wherebght4==2]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V332" name="othmedth" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1215" EndPos="1215" width="1" RecSegNo="1"/>
      <labl>
        Taking medicines (other that for TB) from the traditional healer (D)
      </labl>
      <qstn>
        <qstnLit>
          Taking medicines (other that for TB) from the traditional healer
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2573
      </sumStat>
      <sumStat type="invd">
        10338
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2180
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          393
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10338
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: othmedicin [taking other medicines] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght1 [where bought other medicines 1] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght2 [where bought other medicines 2] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght3 [where bought other medicines 3] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght4 [where bought other medicines 4] (table[s]: tbold_part1/2, tbold_control)

gen othmedth=0 if othmedicin==1 | othmedicin==0
replace othmedth=1 if wherebght1==3 | wherebght2==3 | wherebght3==3 | wherebght4==3]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V333" name="othmedsh" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1216" EndPos="1216" width="1" RecSegNo="1"/>
      <labl>
        Taking medicines (other that for TB): self treatment with herbs (D)
      </labl>
      <qstn>
        <qstnLit>
          Taking medicines (other that for TB): self treatment with herbs
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2573
      </sumStat>
      <sumStat type="invd">
        10338
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2548
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          25
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10338
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: othmedicin [taking other medicines] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght1 [where bought other medicines 1] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght2 [where bought other medicines 2] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght3 [where bought other medicines 3] (table[s]: tbold_part1/2, tbold_control)
variable: wherebght4 [where bought other medicines 4] (table[s]: tbold_part1/2, tbold_control)

gen othmedsh=0 if othmedicin==1 | othmedicin==0
replace othmedsh=1 if wherebght1==4 | wherebght2==4 | wherebght3==4 | wherebght4==4]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V334" name="diabetes" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1217" EndPos="1217" width="1" RecSegNo="1"/>
      <labl>
        Have you ever been diagnosed with diabetes (sugar disease)
      </labl>
      <qstn>
        <qstnLit>
          Have you ever been diagnosed with diabetes (sugar disease)
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3101
      </sumStat>
      <sumStat type="invd">
        9810
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2573
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          9
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          519
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9810
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V335" name="seriousdis" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1218" EndPos="1218" width="1" RecSegNo="1"/>
      <labl>
        Have you ever been diagnosed with any other serious disease?
      </labl>
      <qstn>
        <qstnLit>
          Have you ever been diagnosed with any other serious disease?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3101
      </sumStat>
      <sumStat type="invd">
        9810
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2146
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          405
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          550
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9810
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V336" name="nursed" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1219" EndPos="1219" width="1" RecSegNo="1"/>
      <labl>
        Since you became ill but before admission to hospital was anyone nursing you?
      </labl>
      <qstn>
        <qstnLit>
          Since you became ill but before admission to hospital was anyone nursing you?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3971
      </sumStat>
      <sumStat type="invd">
        8940
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          3190
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          729
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          52
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8940
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V337" name="idnursed1" files="F1" intrvl="discrete">
      <location StartPos="1220" EndPos="1226" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of person1 who nursed them linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of person1 who nursed them linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        729
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V338" name="idnursed2" files="F1" intrvl="discrete">
      <location StartPos="1227" EndPos="1233" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of person2 who nursed them linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of person2 who nursed them linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        168
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V339" name="idnursed3" files="F1" intrvl="discrete">
      <location StartPos="1234" EndPos="1240" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of person3 who nursed them linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of person3 who nursed them linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        27
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V340" name="maridill" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1241" EndPos="1241" width="1" RecSegNo="1"/>
      <labl>
        Living as married with anyone while ill but before hospital admission
      </labl>
      <qstn>
        <qstnLit>
          Living as married with anyone while ill but before hospital admission
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3814
      </sumStat>
      <sumStat type="invd">
        9097
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          1592
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          2103
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          119
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9097
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V341" name="idspouse1" files="F1" intrvl="discrete">
      <location StartPos="1242" EndPos="1248" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of spouse1 them linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of spouse1 them linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        2102
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V342" name="spougard1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1249" EndPos="1249" width="1" RecSegNo="1"/>
      <labl>
        Is spouse1 attending as the guardian?
      </labl>
      <qstn>
        <qstnLit>
          Is spouse1 attending as the guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1430
      </sumStat>
      <sumStat type="invd">
        11481
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          638
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          762
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          30
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11481
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V343" name="idspouse2" files="F1" intrvl="discrete">
      <location StartPos="1250" EndPos="1256" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of spouse2 them linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of spouse2 them linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        119
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V344" name="spougard2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1257" EndPos="1257" width="1" RecSegNo="1"/>
      <labl>
        Is spouse2 attending as the guardian?
      </labl>
      <qstn>
        <qstnLit>
          Is spouse2 attending as the guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        101
      </sumStat>
      <sumStat type="invd">
        12810
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          39
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          57
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12810
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V345" name="idspouse3" files="F1" intrvl="discrete">
      <location StartPos="1258" EndPos="1264" width="7" RecSegNo="1"/>
      <labl>
        unique identifier of spouse3 them linkable to other studies
      </labl>
      <qstn>
        <qstnLit>
          unique identifier of spouse3 them linkable to other studies
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        16
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V346" name="spougard3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1265" EndPos="1265" width="1" RecSegNo="1"/>
      <labl>
        Is spouse3 attending as the guardian?
      </labl>
      <qstn>
        <qstnLit>
          Is spouse3 attending as the guardian?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        14
      </sumStat>
      <sumStat type="invd">
        12897
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12897
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V347" name="billdwlad" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1266" EndPos="1266" width="1" RecSegNo="1"/>
      <labl>
        In the year before illness, num adults shared a sleeping dwelling with?
      </labl>
      <qstn>
        <qstnLit>
          In the year before illness, num adults shared a sleeping dwelling with?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1761
      </sumStat>
      <sumStat type="invd">
        11150
      </sumStat>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V348" name="billdwlch" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1267" EndPos="1267" width="1" RecSegNo="1"/>
      <labl>
        In the year before illness, num children shared a sleeping dwelling with?
      </labl>
      <qstn>
        <qstnLit>
          In the year before illness, num children shared a sleeping dwelling with?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1761
      </sumStat>
      <sumStat type="invd">
        11150
      </sumStat>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V349" name="willdwlad" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1268" EndPos="1268" width="1" RecSegNo="1"/>
      <labl>
        When became ill, num adults shared a sleeping dwelling with?
      </labl>
      <qstn>
        <qstnLit>
          When became ill, num adults shared a sleeping dwelling with?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1761
      </sumStat>
      <sumStat type="invd">
        11150
      </sumStat>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V350" name="willdwlch" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1269" EndPos="1269" width="1" RecSegNo="1"/>
      <labl>
        When became ill, num children shared a sleeping dwelling with?
      </labl>
      <qstn>
        <qstnLit>
          When became ill, num children shared a sleeping dwelling with?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        1761
      </sumStat>
      <sumStat type="invd">
        11150
      </sumStat>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V351" name="haemopt" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1270" EndPos="1270" width="1" RecSegNo="1"/>
      <labl>
        Haemoptysis
      </labl>
      <qstn>
        <qstnLit>
          Haemoptysis
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        181
      </sumStat>
      <sumStat type="invd">
        12730
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          157
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          22
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12730
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V352" name="examglands" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1271" EndPos="1271" width="1" RecSegNo="1"/>
      <labl>
        Examination for glands
      </labl>
      <qstn>
        <qstnLit>
          Examination for glands
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2761
      </sumStat>
      <sumStat type="invd">
        10150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Incomplete
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Complete
        </labl>
        <catStat type="freq">
          2679
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Not done
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Unable
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Refused
        </labl>
        <catStat type="freq">
          12
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          42
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V353" name="fntbpul" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1272" EndPos="1272" width="1" RecSegNo="1"/>
      <labl>
        Findings: TB suspect pulmonary?
      </labl>
      <qstn>
        <qstnLit>
          Findings: TB suspect pulmonary?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2761
      </sumStat>
      <sumStat type="invd">
        10150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          292
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          2469
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V354" name="fntbgl" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1273" EndPos="1273" width="1" RecSegNo="1"/>
      <labl>
        Findings: TB suspect glandular?
      </labl>
      <qstn>
        <qstnLit>
          Findings: TB suspect glandular?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2761
      </sumStat>
      <sumStat type="invd">
        10150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          2753
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V355" name="fntboth" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1274" EndPos="1274" width="1" RecSegNo="1"/>
      <labl>
        Findings: TB suspect both pulmonary and glandular?
      </labl>
      <qstn>
        <qstnLit>
          Findings: TB suspect both pulmonary and glandular?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2761
      </sumStat>
      <sumStat type="invd">
        10150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          10
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          2751
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V356" name="fnother" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1275" EndPos="1275" width="1" RecSegNo="1"/>
      <labl>
        Findings: TB suspect other?
      </labl>
      <qstn>
        <qstnLit>
          Findings: TB suspect other?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2761
      </sumStat>
      <sumStat type="invd">
        10150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          15
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          2746
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V357" name="revmo" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1276" EndPos="1276" width="1" RecSegNo="1"/>
      <labl>
        To be reviewed by Medical Officer/Clinical Officer?
      </labl>
      <qstn>
        <qstnLit>
          To be reviewed by Medical Officer/Clinical Officer?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2761
      </sumStat>
      <sumStat type="invd">
        10150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2339
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          268
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <catStat type="freq">
          34
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          120
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V358" name="refhosp" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1277" EndPos="1277" width="1" RecSegNo="1"/>
      <labl>
        Referred to hospital for admission?
      </labl>
      <qstn>
        <qstnLit>
          Referred to hospital for admission?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        2761
      </sumStat>
      <sumStat type="invd">
        10150
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          2468
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          8
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <catStat type="freq">
          144
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          141
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          10150
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V359" name="examlep" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1278" EndPos="1278" width="1" RecSegNo="1"/>
      <labl>
        Examined for leprosy
      </labl>
      <qstn>
        <qstnLit>
          Examined for leprosy
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        811
      </sumStat>
      <sumStat type="invd">
        12100
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Incomplete
        </labl>
        <catStat type="freq">
          48
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Complete
        </labl>
        <catStat type="freq">
          724
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Not done
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Unable
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Refused
        </labl>
        <catStat type="freq">
          11
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          24
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12100
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V360" name="fnlep" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1279" EndPos="1279" width="1" RecSegNo="1"/>
      <labl>
        Leprosy suspect
      </labl>
      <qstn>
        <qstnLit>
          Leprosy suspect
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        811
      </sumStat>
      <sumStat type="invd">
        12100
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          811
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12100
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V361" name="fnoskd" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1280" EndPos="1280" width="1" RecSegNo="1"/>
      <labl>
        Skin disease
      </labl>
      <qstn>
        <qstnLit>
          Skin disease
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        811
      </sumStat>
      <sumStat type="invd">
        12100
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          136
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          675
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12100
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V362" name="disease1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1281" EndPos="1283" width="3" RecSegNo="1"/>
      <labl>
        Skin disease 1
      </labl>
      <qstn>
        <qstnLit>
          Skin disease 1
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="999"/>
      </valrng>
      <sumStat type="vald">
        136
      </sumStat>
      <sumStat type="invd">
        12775
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Malnutrition
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Scabies
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Ext t versicolor
        </labl>
        <catStat type="freq">
          49
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Mild t versicolor
        </labl>
        <catStat type="freq">
          15
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Extensive impetigo
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Von Recklinghausen's
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Signs of past polio
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Mutism
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          T corporis/circinat
        </labl>
        <catStat type="freq">
          7
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Sev rheumatoid arth
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Morphoea (probably)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Ichthyosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Psoriasis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Lupus vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Secondary syphilis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Chicken pox
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Herpes zoster (shingles)
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Herpes simplex (extr
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          24
        </catValu>
        <labl>
          Herpes simplex (geni
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          25
        </catValu>
        <labl>
          Verruca vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          26
        </catValu>
        <labl>
          Plane warts
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          27
        </catValu>
        <labl>
          Genital warts
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          28
        </catValu>
        <labl>
          Molluscum contagiosu
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          30
        </catValu>
        <labl>
          Acne vulgaris
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Acne conglobata
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          32
        </catValu>
        <labl>
          Folliculitis/papulop
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          Keratosis follicular
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          34
        </catValu>
        <labl>
          Allergic cont derma
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          35
        </catValu>
        <labl>
          Irritant cont derma
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          36
        </catValu>
        <labl>
          Seborrhoeic dermatit
        </labl>
        <catStat type="freq">
          4
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          37
        </catValu>
        <labl>
          Atopic eczema
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          38
        </catValu>
        <labl>
          Nummular discoid ecz
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          39
        </catValu>
        <labl>
          Lichen simplex chron
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          40
        </catValu>
        <labl>
          Pityriasis alba
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          Unspec chronic derm
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          Pellagra
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          43
        </catValu>
        <labl>
          Photoallergic dermat
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          44
        </catValu>
        <labl>
          Phototoxic dermatiti
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          45
        </catValu>
        <labl>
          Dyshydrosis (pomphol
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          46
        </catValu>
        <labl>
          Eczematide
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          47
        </catValu>
        <labl>
          Acute urticaria, whe
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          48
        </catValu>
        <labl>
          Chronic urticaria
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Papular urticaria
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          50
        </catValu>
        <labl>
          Pruritus without ski
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Prurigo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Candidosis (paronych
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Tinea pedis
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Tinea inguinalis
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          55
        </catValu>
        <labl>
          Tinea capitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          56
        </catValu>
        <labl>
          Chronic discoid lupu
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          57
        </catValu>
        <labl>
          Pityriasis rosea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          58
        </catValu>
        <labl>
          Cutaneous larva migr
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Benign skin tumour
        </labl>
        <catStat type="freq">
          20
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          60
        </catValu>
        <labl>
          Kaposi's sarcoma
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          62
        </catValu>
        <labl>
          Malignant melanoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          63
        </catValu>
        <labl>
          Basal cell carcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          64
        </catValu>
        <labl>
          Squamous cell carcin
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          65
        </catValu>
        <labl>
          Lichen planus
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          66
        </catValu>
        <labl>
          Drug reaction/sj syn
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          67
        </catValu>
        <labl>
          Fixed drug eruption
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          68
        </catValu>
        <labl>
          Vitiligo
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          69
        </catValu>
        <labl>
          Gonorrhoea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          70
        </catValu>
        <labl>
          Chancroid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          71
        </catValu>
        <labl>
          Lymphogranuloma vene
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          72
        </catValu>
        <labl>
          Dermatitis herpetifo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          73
        </catValu>
        <labl>
          Pemphigus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          74
        </catValu>
        <labl>
          Pemphigoid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          75
        </catValu>
        <labl>
          Porphyria cutanea ta
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          76
        </catValu>
        <labl>
          Stomatitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          77
        </catValu>
        <labl>
          Erythroderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          78
        </catValu>
        <labl>
          Scleroderma+morphea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          79
        </catValu>
        <labl>
          Scrophuloderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          80
        </catValu>
        <labl>
          Erythema nodosum
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          81
        </catValu>
        <labl>
          Erythema induratum
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          82
        </catValu>
        <labl>
          Papulonecrotic tuber
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          83
        </catValu>
        <labl>
          Haemangioma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          84
        </catValu>
        <labl>
          Granuloma annulare
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          85
        </catValu>
        <labl>
          Deep fungal infectio
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          86
        </catValu>
        <labl>
          Tropical ulcer
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          87
        </catValu>
        <labl>
          Buruli ulcer (m.ulce
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          88
        </catValu>
        <labl>
          Cellulitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          89
        </catValu>
        <labl>
          Erythema multiforme
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          90
        </catValu>
        <labl>
          Measles
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          91
        </catValu>
        <labl>
          Primary syphilis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          92
        </catValu>
        <labl>
          Gen lymphadenopathy
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          93
        </catValu>
        <labl>
          Glandular tb/loc lym
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          94
        </catValu>
        <labl>
          Undiag urethral dis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          95
        </catValu>
        <labl>
          Cysticercosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          96
        </catValu>
        <labl>
          Acne keloidalis nuch
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          97
        </catValu>
        <labl>
          Saocoidosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Tinea unguum (fungal
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Lichen nitidus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          100
        </catValu>
        <labl>
          Lichen sclerosus et
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          101
        </catValu>
        <labl>
          Infective dermatitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          102
        </catValu>
        <labl>
          Pit rubra pilaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          103
        </catValu>
        <labl>
          Keratoderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          104
        </catValu>
        <labl>
          Pseudofolliculitis b
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          105
        </catValu>
        <labl>
          Lichen striatus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          106
        </catValu>
        <labl>
          Pityriasis lichenoid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          107
        </catValu>
        <labl>
          Bell's palsy
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          108
        </catValu>
        <labl>
          Metastatic carcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          109
        </catValu>
        <labl>
          Non specific ulcer
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          110
        </catValu>
        <labl>
          Leukaemia
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          111
        </catValu>
        <labl>
          Hodgkin's lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          112
        </catValu>
        <labl>
          Non hodgkin's lympho
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          113
        </catValu>
        <labl>
          Alopecia areata
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          114
        </catValu>
        <labl>
          Cutaneous t cell lym
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          115
        </catValu>
        <labl>
          Pyogenic granuloma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          116
        </catValu>
        <labl>
          B-cell lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          117
        </catValu>
        <labl>
          Erythrasima
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          118
        </catValu>
        <labl>
          Millaria rubra/cysts
        </labl>
        <catStat type="freq">
          5
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          119
        </catValu>
        <labl>
          Lice(pedic.pubis/cap
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          120
        </catValu>
        <labl>
          Unspecified carcinom
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          121
        </catValu>
        <labl>
          Haemorrhoids
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          122
        </catValu>
        <labl>
          Elephantiasis
        </labl>
        <catStat type="freq">
          3
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          123
        </catValu>
        <labl>
          Hydrocoele
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          124
        </catValu>
        <labl>
          Hydradenitis suppuri
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12775
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V363" name="disease2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1284" EndPos="1286" width="3" RecSegNo="1"/>
      <labl>
        Skin disease 2
      </labl>
      <qstn>
        <qstnLit>
          Skin disease 2
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="999"/>
      </valrng>
      <sumStat type="vald">
        9
      </sumStat>
      <sumStat type="invd">
        12902
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Malnutrition
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Scabies
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Ext t versicolor
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Mild t versicolor
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Extensive impetigo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Von Recklinghausen's
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Signs of past polio
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Mutism
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          T corporis/circinat
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Sev rheumatoid arth
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Morphoea (probably)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Ichthyosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Psoriasis
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Lupus vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Secondary syphilis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Chicken pox
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Herpes zoster (shingles)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Herpes simplex (extr
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          24
        </catValu>
        <labl>
          Herpes simplex (geni
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          25
        </catValu>
        <labl>
          Verruca vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          26
        </catValu>
        <labl>
          Plane warts
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          27
        </catValu>
        <labl>
          Genital warts
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          28
        </catValu>
        <labl>
          Molluscum contagiosu
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          30
        </catValu>
        <labl>
          Acne vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Acne conglobata
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          32
        </catValu>
        <labl>
          Folliculitis/papulop
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          Keratosis follicular
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          34
        </catValu>
        <labl>
          Allergic cont derma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          35
        </catValu>
        <labl>
          Irritant cont derma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          36
        </catValu>
        <labl>
          Seborrhoeic dermatit
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          37
        </catValu>
        <labl>
          Atopic eczema
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          38
        </catValu>
        <labl>
          Nummular discoid ecz
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          39
        </catValu>
        <labl>
          Lichen simplex chron
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          40
        </catValu>
        <labl>
          Pityriasis alba
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          Unspec chronic derm
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          Pellagra
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          43
        </catValu>
        <labl>
          Photoallergic dermat
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          44
        </catValu>
        <labl>
          Phototoxic dermatiti
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          45
        </catValu>
        <labl>
          Dyshydrosis (pomphol
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          46
        </catValu>
        <labl>
          Eczematide
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          47
        </catValu>
        <labl>
          Acute urticaria, whe
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          48
        </catValu>
        <labl>
          Chronic urticaria
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Papular urticaria
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          50
        </catValu>
        <labl>
          Pruritus without ski
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Prurigo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Candidosis (paronych
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Tinea pedis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Tinea inguinalis
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          55
        </catValu>
        <labl>
          Tinea capitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          56
        </catValu>
        <labl>
          Chronic discoid lupu
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          57
        </catValu>
        <labl>
          Pityriasis rosea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          58
        </catValu>
        <labl>
          Cutaneous larva migr
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Benign skin tumour
        </labl>
        <catStat type="freq">
          2
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          60
        </catValu>
        <labl>
          Kaposi's sarcoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          62
        </catValu>
        <labl>
          Malignant melanoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          63
        </catValu>
        <labl>
          Basal cell carcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          64
        </catValu>
        <labl>
          Squamous cell carcin
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          65
        </catValu>
        <labl>
          Lichen planus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          66
        </catValu>
        <labl>
          Drug reaction/sj syn
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          67
        </catValu>
        <labl>
          Fixed drug eruption
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          68
        </catValu>
        <labl>
          Vitiligo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          69
        </catValu>
        <labl>
          Gonorrhoea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          70
        </catValu>
        <labl>
          Chancroid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          71
        </catValu>
        <labl>
          Lymphogranuloma vene
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          72
        </catValu>
        <labl>
          Dermatitis herpetifo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          73
        </catValu>
        <labl>
          Pemphigus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          74
        </catValu>
        <labl>
          Pemphigoid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          75
        </catValu>
        <labl>
          Porphyria cutanea ta
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          76
        </catValu>
        <labl>
          Stomatitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          77
        </catValu>
        <labl>
          Erythroderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          78
        </catValu>
        <labl>
          Scleroderma+morphea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          79
        </catValu>
        <labl>
          Scrophuloderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          80
        </catValu>
        <labl>
          Erythema nodosum
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          81
        </catValu>
        <labl>
          Erythema induratum
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          82
        </catValu>
        <labl>
          Papulonecrotic tuber
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          83
        </catValu>
        <labl>
          Haemangioma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          84
        </catValu>
        <labl>
          Granuloma annulare
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          85
        </catValu>
        <labl>
          Deep fungal infectio
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          86
        </catValu>
        <labl>
          Tropical ulcer
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          87
        </catValu>
        <labl>
          Buruli ulcer (m.ulce
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          88
        </catValu>
        <labl>
          Cellulitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          89
        </catValu>
        <labl>
          Erythema multiforme
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          90
        </catValu>
        <labl>
          Measles
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          91
        </catValu>
        <labl>
          Primary syphilis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          92
        </catValu>
        <labl>
          Gen lymphadenopathy
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          93
        </catValu>
        <labl>
          Glandular tb/loc lym
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          94
        </catValu>
        <labl>
          Undiag urethral dis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          95
        </catValu>
        <labl>
          Cysticercosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          96
        </catValu>
        <labl>
          Acne keloidalis nuch
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          97
        </catValu>
        <labl>
          Saocoidosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Tinea unguum (fungal
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Lichen nitidus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          100
        </catValu>
        <labl>
          Lichen sclerosus et
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          101
        </catValu>
        <labl>
          Infective dermatitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          102
        </catValu>
        <labl>
          Pit rubra pilaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          103
        </catValu>
        <labl>
          Keratoderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          104
        </catValu>
        <labl>
          Pseudofolliculitis b
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          105
        </catValu>
        <labl>
          Lichen striatus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          106
        </catValu>
        <labl>
          Pityriasis lichenoid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          107
        </catValu>
        <labl>
          Bell's palsy
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          108
        </catValu>
        <labl>
          Metastatic carcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          109
        </catValu>
        <labl>
          Non specific ulcer
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          110
        </catValu>
        <labl>
          Leukaemia
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          111
        </catValu>
        <labl>
          Hodgkin's lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          112
        </catValu>
        <labl>
          Non hodgkin's lympho
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          113
        </catValu>
        <labl>
          Alopecia areata
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          114
        </catValu>
        <labl>
          Cutaneous t cell lym
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          115
        </catValu>
        <labl>
          Pyogenic granuloma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          116
        </catValu>
        <labl>
          B-cell lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          117
        </catValu>
        <labl>
          Erythrasima
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          118
        </catValu>
        <labl>
          Millaria rubra/cysts
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          119
        </catValu>
        <labl>
          Lice(pedic.pubis/cap
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          120
        </catValu>
        <labl>
          Unspecified carcinom
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          121
        </catValu>
        <labl>
          Haemorrhoids
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          122
        </catValu>
        <labl>
          Elephantiasis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          123
        </catValu>
        <labl>
          Hydrocoele
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          124
        </catValu>
        <labl>
          Hydradenitis suppuri
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12902
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V364" name="disease3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1287" EndPos="1289" width="3" RecSegNo="1"/>
      <labl>
        Skin disease 3
      </labl>
      <qstn>
        <qstnLit>
          Skin disease 3
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="999"/>
      </valrng>
      <sumStat type="vald">
        1
      </sumStat>
      <sumStat type="invd">
        12910
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Malnutrition
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Scabies
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Ext t versicolor
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Mild t versicolor
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Extensive impetigo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          6
        </catValu>
        <labl>
          Von Recklinghausen's
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          7
        </catValu>
        <labl>
          Signs of past polio
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Mutism
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          T corporis/circinat
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          10
        </catValu>
        <labl>
          Sev rheumatoid arth
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          12
        </catValu>
        <labl>
          Morphoea (probably)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          13
        </catValu>
        <labl>
          Ichthyosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          15
        </catValu>
        <labl>
          Psoriasis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          19
        </catValu>
        <labl>
          Lupus vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          20
        </catValu>
        <labl>
          Secondary syphilis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          21
        </catValu>
        <labl>
          Chicken pox
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          22
        </catValu>
        <labl>
          Herpes zoster (shingles)
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          23
        </catValu>
        <labl>
          Herpes simplex (extr
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          24
        </catValu>
        <labl>
          Herpes simplex (geni
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          25
        </catValu>
        <labl>
          Verruca vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          26
        </catValu>
        <labl>
          Plane warts
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          27
        </catValu>
        <labl>
          Genital warts
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          28
        </catValu>
        <labl>
          Molluscum contagiosu
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          30
        </catValu>
        <labl>
          Acne vulgaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          31
        </catValu>
        <labl>
          Acne conglobata
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          32
        </catValu>
        <labl>
          Folliculitis/papulop
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          33
        </catValu>
        <labl>
          Keratosis follicular
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          34
        </catValu>
        <labl>
          Allergic cont derma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          35
        </catValu>
        <labl>
          Irritant cont derma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          36
        </catValu>
        <labl>
          Seborrhoeic dermatit
        </labl>
        <catStat type="freq">
          1
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          37
        </catValu>
        <labl>
          Atopic eczema
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          38
        </catValu>
        <labl>
          Nummular discoid ecz
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          39
        </catValu>
        <labl>
          Lichen simplex chron
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          40
        </catValu>
        <labl>
          Pityriasis alba
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          41
        </catValu>
        <labl>
          Unspec chronic derm
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          42
        </catValu>
        <labl>
          Pellagra
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          43
        </catValu>
        <labl>
          Photoallergic dermat
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          44
        </catValu>
        <labl>
          Phototoxic dermatiti
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          45
        </catValu>
        <labl>
          Dyshydrosis (pomphol
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          46
        </catValu>
        <labl>
          Eczematide
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          47
        </catValu>
        <labl>
          Acute urticaria, whe
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          48
        </catValu>
        <labl>
          Chronic urticaria
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          49
        </catValu>
        <labl>
          Papular urticaria
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          50
        </catValu>
        <labl>
          Pruritus without ski
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          51
        </catValu>
        <labl>
          Prurigo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          52
        </catValu>
        <labl>
          Candidosis (paronych
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          53
        </catValu>
        <labl>
          Tinea pedis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          54
        </catValu>
        <labl>
          Tinea inguinalis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          55
        </catValu>
        <labl>
          Tinea capitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          56
        </catValu>
        <labl>
          Chronic discoid lupu
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          57
        </catValu>
        <labl>
          Pityriasis rosea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          58
        </catValu>
        <labl>
          Cutaneous larva migr
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          59
        </catValu>
        <labl>
          Benign skin tumour
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          60
        </catValu>
        <labl>
          Kaposi's sarcoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          62
        </catValu>
        <labl>
          Malignant melanoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          63
        </catValu>
        <labl>
          Basal cell carcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          64
        </catValu>
        <labl>
          Squamous cell carcin
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          65
        </catValu>
        <labl>
          Lichen planus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          66
        </catValu>
        <labl>
          Drug reaction/sj syn
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          67
        </catValu>
        <labl>
          Fixed drug eruption
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          68
        </catValu>
        <labl>
          Vitiligo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          69
        </catValu>
        <labl>
          Gonorrhoea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          70
        </catValu>
        <labl>
          Chancroid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          71
        </catValu>
        <labl>
          Lymphogranuloma vene
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          72
        </catValu>
        <labl>
          Dermatitis herpetifo
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          73
        </catValu>
        <labl>
          Pemphigus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          74
        </catValu>
        <labl>
          Pemphigoid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          75
        </catValu>
        <labl>
          Porphyria cutanea ta
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          76
        </catValu>
        <labl>
          Stomatitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          77
        </catValu>
        <labl>
          Erythroderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          78
        </catValu>
        <labl>
          Scleroderma+morphea
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          79
        </catValu>
        <labl>
          Scrophuloderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          80
        </catValu>
        <labl>
          Erythema nodosum
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          81
        </catValu>
        <labl>
          Erythema induratum
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          82
        </catValu>
        <labl>
          Papulonecrotic tuber
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          83
        </catValu>
        <labl>
          Haemangioma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          84
        </catValu>
        <labl>
          Granuloma annulare
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          85
        </catValu>
        <labl>
          Deep fungal infectio
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          86
        </catValu>
        <labl>
          Tropical ulcer
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          87
        </catValu>
        <labl>
          Buruli ulcer (m.ulce
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          88
        </catValu>
        <labl>
          Cellulitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          89
        </catValu>
        <labl>
          Erythema multiforme
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          90
        </catValu>
        <labl>
          Measles
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          91
        </catValu>
        <labl>
          Primary syphilis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          92
        </catValu>
        <labl>
          Gen lymphadenopathy
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          93
        </catValu>
        <labl>
          Glandular tb/loc lym
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          94
        </catValu>
        <labl>
          Undiag urethral dis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          95
        </catValu>
        <labl>
          Cysticercosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          96
        </catValu>
        <labl>
          Acne keloidalis nuch
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          97
        </catValu>
        <labl>
          Saocoidosis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Tinea unguum (fungal
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Lichen nitidus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          100
        </catValu>
        <labl>
          Lichen sclerosus et
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          101
        </catValu>
        <labl>
          Infective dermatitis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          102
        </catValu>
        <labl>
          Pit rubra pilaris
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          103
        </catValu>
        <labl>
          Keratoderma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          104
        </catValu>
        <labl>
          Pseudofolliculitis b
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          105
        </catValu>
        <labl>
          Lichen striatus
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          106
        </catValu>
        <labl>
          Pityriasis lichenoid
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          107
        </catValu>
        <labl>
          Bell's palsy
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          108
        </catValu>
        <labl>
          Metastatic carcinoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          109
        </catValu>
        <labl>
          Non specific ulcer
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          110
        </catValu>
        <labl>
          Leukaemia
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          111
        </catValu>
        <labl>
          Hodgkin's lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          112
        </catValu>
        <labl>
          Non hodgkin's lympho
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          113
        </catValu>
        <labl>
          Alopecia areata
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          114
        </catValu>
        <labl>
          Cutaneous t cell lym
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          115
        </catValu>
        <labl>
          Pyogenic granuloma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          116
        </catValu>
        <labl>
          B-cell lymphoma
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          117
        </catValu>
        <labl>
          Erythrasima
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          118
        </catValu>
        <labl>
          Millaria rubra/cysts
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          119
        </catValu>
        <labl>
          Lice(pedic.pubis/cap
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          120
        </catValu>
        <labl>
          Unspecified carcinom
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          121
        </catValu>
        <labl>
          Haemorrhoids
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          122
        </catValu>
        <labl>
          Elephantiasis
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          123
        </catValu>
        <labl>
          Hydrocoele
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          124
        </catValu>
        <labl>
          Hydradenitis suppuri
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12910
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V365" name="examdate" files="F1" intrvl="discrete">
      <location StartPos="1290" EndPos="1299" width="10" RecSegNo="1"/>
      <labl>
        examination date
      </labl>
      <qstn>
        <qstnLit>
          examination date
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        805
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V366" name="weight" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1300" EndPos="1302" width="3" RecSegNo="1"/>
      <labl>
        Weight at diagnosis
      </labl>
      <qstn>
        <qstnLit>
          Weight at diagnosis
        </qstnLit>
      </qstn>
      <valrng>
        <range UNITS="REAL" min="3" max="999"/>
      </valrng>
      <sumStat type="vald">
        6232
      </sumStat>
      <sumStat type="invd">
        6679
      </sumStat>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V367" name="height" files="F1" dcml="0" intrvl="contin">
      <location StartPos="1303" EndPos="1305" width="3" RecSegNo="1"/>
      <labl>
        Height
      </labl>
      <qstn>
        <qstnLit>
          Height
        </qstnLit>
      </qstn>
      <valrng>
        <range UNITS="REAL" min="34" max="999"/>
      </valrng>
      <sumStat type="vald">
        5551
      </sumStat>
      <sumStat type="invd">
        7360
      </sumStat>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V368" name="muac" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1306" EndPos="1308" width="3" RecSegNo="1"/>
      <labl>
        mid-upper arm circumference
      </labl>
      <qstn>
        <qstnLit>
          mid-upper arm circumference
        </qstnLit>
      </qstn>
      <valrng>
        <range min="21" max="999"/>
      </valrng>
      <sumStat type="vald">
        811
      </sumStat>
      <sumStat type="invd">
        12100
      </sumStat>
      <catgry>
        <catValu>
          998
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          999
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V369" name="bcgscar1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1309" EndPos="1309" width="1" RecSegNo="1"/>
      <labl>
        Presence of BCG scar 1
      </labl>
      <qstn>
        <qstnLit>
          Presence of BCG scar 1
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        5456
      </sumStat>
      <sumStat type="invd">
        7455
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          None
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Doubtful
        </labl>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Not examined
        </labl>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Blind review
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V370" name="bcgsize1" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1310" EndPos="1311" width="2" RecSegNo="1"/>
      <labl>
        Size of BCG scar 1
      </labl>
      <qstn>
        <qstnLit>
          Size of BCG scar 1
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="99"/>
      </valrng>
      <sumStat type="vald">
        3937
      </sumStat>
      <sumStat type="invd">
        8974
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V371" name="bcgscar2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1312" EndPos="1312" width="1" RecSegNo="1"/>
      <labl>
        Presence of BCG scar 2
      </labl>
      <qstn>
        <qstnLit>
          Presence of BCG scar 2
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        3937
      </sumStat>
      <sumStat type="invd">
        8974
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          None
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Doubtful
        </labl>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Not examined
        </labl>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Blind review
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V372" name="bcgsize2" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1313" EndPos="1314" width="2" RecSegNo="1"/>
      <labl>
        Size of BCG scar 2
      </labl>
      <qstn>
        <qstnLit>
          Size of BCG scar 2
        </qstnLit>
      </qstn>
      <valrng>
        <range min="2" max="99"/>
      </valrng>
      <sumStat type="vald">
        756
      </sumStat>
      <sumStat type="invd">
        12155
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V373" name="bcgscar3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1315" EndPos="1315" width="1" RecSegNo="1"/>
      <labl>
        Presence of BCG scar 3
      </labl>
      <qstn>
        <qstnLit>
          Presence of BCG scar 3
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        756
      </sumStat>
      <sumStat type="invd">
        12155
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          None
        </labl>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Doubtful
        </labl>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Not examined
        </labl>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Blind review
        </labl>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V374" name="bcgsize3" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1316" EndPos="1317" width="2" RecSegNo="1"/>
      <labl>
        Size of BCG scar 3
      </labl>
      <qstn>
        <qstnLit>
          Size of BCG scar 3
        </qstnLit>
      </qstn>
      <valrng>
        <range min="2" max="99"/>
      </valrng>
      <sumStat type="vald">
        33
      </sumStat>
      <sumStat type="invd">
        12878
      </sumStat>
      <catgry>
        <catValu>
          98
        </catValu>
        <labl>
          Unknown
        </labl>
      </catgry>
      <catgry>
        <catValu>
          99
        </catValu>
        <labl>
          Missing
        </labl>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V375" name="nearesthivnegdate" files="F1" intrvl="discrete">
      <location StartPos="1318" EndPos="1327" width="10" RecSegNo="1"/>
      <labl>
        Nearest negative HIV test date closest to TB interview (D)
      </labl>
      <qstn>
        <qstnLit>
          Nearest negative HIV test date closest to TB interview
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        4845
      </sumStat>
      <codInstr>
        <![CDATA[variable: neg_date* [HIV negative date(s)] (table[s]: hivart_kps_known_all)

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
*hivstatus
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'~=.
	}]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V376" name="firsthivposdate" files="F1" intrvl="discrete">
      <location StartPos="1328" EndPos="1337" width="10" RecSegNo="1"/>
      <labl>
        First positive HIV test date (D)
      </labl>
      <qstn>
        <qstnLit>
          First positive HIV test date
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        4636
      </sumStat>
      <codInstr>
        <![CDATA[variable: firsthivposdate (table[s]: hivart_kps_known_all)

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]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V377" name="lastneverart_date" files="F1" intrvl="discrete">
      <location StartPos="1338" EndPos="1347" width="10" RecSegNo="1"/>
      <labl>
        Last date known not on ART (D)
      </labl>
      <qstn>
        <qstnLit>
          Last date known not on ART
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        197
      </sumStat>
      <codInstr>
        <![CDATA[variable: lastneverart_date (table[s]: hivart_kps_known_all)

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]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V378" name="firstart_date" files="F1" intrvl="discrete">
      <location StartPos="1348" EndPos="1357" width="10" RecSegNo="1"/>
      <labl>
        First date on ART (D)
      </labl>
      <qstn>
        <qstnLit>
          First date on ART
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        2561
      </sumStat>
      <codInstr>
        <![CDATA[variable: firstart_date (table[s]: hivart_kps_known_all)

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]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V379" name="lastonart_date" files="F1" intrvl="discrete">
      <location StartPos="1358" EndPos="1367" width="10" RecSegNo="1"/>
      <labl>
        Last date known on ART (D)
      </labl>
      <qstn>
        <qstnLit>
          Last date known on ART
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        2561
      </sumStat>
      <codInstr>
        <![CDATA[variable: lastonart_date (table[s]: hivart_kps_known_all)

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]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V380" name="lastartstop_date" files="F1" intrvl="discrete">
      <location StartPos="1368" EndPos="1377" width="10" RecSegNo="1"/>
      <labl>
        ART stop date (D)
      </labl>
      <qstn>
        <qstnLit>
          ART stop date
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        1155
      </sumStat>
      <codInstr>
        <![CDATA[variable: lastartstop_date (table[s]: hivart_kps_known_all)

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]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V381" name="hivstatus" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1378" EndPos="1378" width="1" RecSegNo="1"/>
      <labl>
        HIV status at interview date (D)
      </labl>
      <qstn>
        <qstnLit>
          HIV status at interview date
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        8952
      </sumStat>
      <sumStat type="invd">
        3959
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Negative
        </labl>
        <catStat type="freq">
          4735
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Positive
        </labl>
        <catStat type="freq">
          4217
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3959
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[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]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V382" name="artstatus" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1379" EndPos="1379" width="1" RecSegNo="1"/>
      <labl>
        ART status at interview date (D)
      </labl>
      <qstn>
        <qstnLit>
          ART status at interview date
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        1304
      </sumStat>
      <sumStat type="invd">
        11607
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Not on ART
        </labl>
        <catStat type="freq">
          18
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          On ART
        </labl>
        <catStat type="freq">
          1286
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          11607
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: intdate [interview date] (table[s]: tb_tbx, tb_tbxto2007, tbold_tbpart1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: lastneverart_date [last known never on ART date] (table[s]: hivart_kps_known_all)
variable: firstart_date [first ART date] (table[s]: hivart_kps_known_all)
variable: hivstatus [HIV status] (table[s]: derived variable)

<Created using ART dates: assign HIV positive people as not on ART if last known not on ART date was up to 2 years before and 1 month after interview date and as on ART if first ART start date was any time before, and last known on ART date was up to 2 years before interview date>
gen artstatus=0 if datehiv-lastneverart_date<=(365.25*2) & datehiv-lastneverart_date>=-31 & hivstatus==1
replace artstatus=1 if firstart_date<=datehiv & datehiv-lastonart_date<=(365.25*2) & hivstatus==1
la def art 0 "Not on ART" 1 "On ART", modify
la val artstatus art]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V383" name="arvmths" files="F1" dcml="0" intrvl="contin">
      <location StartPos="1380" EndPos="1395" width="16" RecSegNo="1"/>
      <labl>
        Months on ART at interview date (D)
      </labl>
      <qstn>
        <qstnLit>
          Months on ART at interview date
        </qstnLit>
      </qstn>
      <valrng>
        <range UNITS="REAL" min="0" max="173.377044677734"/>
      </valrng>
      <sumStat type="vald">
        1286
      </sumStat>
      <sumStat type="invd">
        11625
      </sumStat>
      <codInstr>
        <![CDATA[variable: intdate [interview date] (table[s]: tb_tbx, tb_tbxto2007, tbold_tbpart1/2, tb_tbo, tb_tboto2007, tbold_control)
variable: firstart_date [first ART date] (table[s]: hivart_kps_known_all)
variable: artstatus [ART status] (table[s]: derived variable)

gen arvmths=int(datehiv-firstart_date)/30.5 if artstatus==1]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V384" name="outcome" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1396" EndPos="1396" width="1" RecSegNo="1"/>
      <labl>
        Outcome
      </labl>
      <qstn>
        <qstnLit>
          Outcome
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        8962
      </sumStat>
      <sumStat type="invd">
        3949
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Treatment completed
        </labl>
        <catStat type="freq">
          5440
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Died
        </labl>
        <catStat type="freq">
          2159
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Transfered out
        </labl>
        <catStat type="freq">
          360
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Failure
        </labl>
        <catStat type="freq">
          149
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Lost/defaulted
        </labl>
        <catStat type="freq">
          777
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          45
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          32
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3949
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V385" name="outcomdate" files="F1" intrvl="discrete">
      <location StartPos="1397" EndPos="1406" width="10" RecSegNo="1"/>
      <labl>
        Date of outcome
      </labl>
      <qstn>
        <qstnLit>
          Date of outcome
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        8885
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V386" name="outcomdatex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1407" EndPos="1407" width="1" RecSegNo="1"/>
      <labl>
        if outcomdate is estimated
      </labl>
      <qstn>
        <qstnLit>
          if outcomdate is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        3230
      </sumStat>
      <sumStat type="invd">
        9681
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          3175
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          55
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          9681
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V387" name="tcardseen" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1408" EndPos="1408" width="1" RecSegNo="1"/>
      <labl>
        Treatment card seen?
      </labl>
      <qstn>
        <qstnLit>
          Treatment card seen?
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <sumStat type="vald">
        869
      </sumStat>
      <sumStat type="invd">
        12042
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          77
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          792
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12042
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V388" name="deathlater" files="F1" intrvl="discrete">
      <location StartPos="1409" EndPos="1418" width="10" RecSegNo="1"/>
      <labl>
        Date of death (If later than date of outcome)
      </labl>
      <qstn>
        <qstnLit>
          Date of death (If later than date of outcome)
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        375
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V389" name="deathlaterx" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1419" EndPos="1419" width="1" RecSegNo="1"/>
      <labl>
        if deathlater is estimated
      </labl>
      <qstn>
        <qstnLit>
          if deathlater is estimated
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        168
      </sumStat>
      <sumStat type="invd">
        12743
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Full date known
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Day unknown
        </labl>
        <catStat type="freq">
          126
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Month unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Day and month unknown
        </labl>
        <catStat type="freq">
          42
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Not known at all
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          12743
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V390" name="lastfudate" files="F1" intrvl="discrete">
      <location StartPos="1420" EndPos="1429" width="10" RecSegNo="1"/>
      <labl>
        Last date person observed (D)
      </labl>
      <qstn>
        <qstnLit>
          Last date person observed
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        12911
      </sumStat>
      <codInstr>
        <![CDATA[variable: dthlftyy [year of death or departure] (table[s]: indices)
variable: outcomdate [outcome date] (table[s]: tbfu_stata)
variable: adl [status: alive/dead/left] (table[s]: indices, tbfu_stata, tb_tbfu)
variable: intdate [date of interview] (table[s]: indices)
variable: dthdate [date of death] (table[s]: tb_tbfu)
variable: leftdate [date of departure] (table[s]: tb_tbfu)
variable: alivedate [date last known alive] (table[s]: tb_tbfu)

<the follow up data is created separately:>
use ${newstata}\indices, clear
recode dthlftyy 0/1900=. 9999=.
gen outcomdate=mdy(6,15,dthlftyy)
drop crsno
append using ${newstata}\tbfu_stata
gen dthdate=outcomdate if adl==2 //2=died
gen leftdate=outcomdate if adl==3 //3=left
append using ${newstata}\tb_tbfu
drop if adl==8 //8=unknown
replace intdate=. if dthdate~=. | leftdate~=. | alivedate~=.
egen lastdate=rowmax(intdate dthdate leftdate alivedate)
bys ident: egen lastfudate=max(lastdate)
gen lastadl=adl if lastdate==lastfudate
bys ident: egen lastfuoutcome=max(lastadl)
la val lastfuoutcome adl
keep ident lastfudate lastfuoutcome
format %td lastfudate
duplicates drop
save ${tempfiles}\fu_dates, replace  
<then merged into the main data file:>
merge m:1 ident using ${tempfiles}\fu_dates, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V391" name="lastfuoutcome" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1430" EndPos="1430" width="1" RecSegNo="1"/>
      <labl>
        Last known outcome of person (D)
      </labl>
      <qstn>
        <qstnLit>
          Last known outcome of person
        </qstnLit>
      </qstn>
      <valrng>
        <range min="1" max="9"/>
      </valrng>
      <sumStat type="vald">
        12911
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Alive
        </labl>
        <catStat type="freq">
          8620
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Dead
        </labl>
        <catStat type="freq">
          3436
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Left
        </labl>
        <catStat type="freq">
          855
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          Missed
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: adl [status: alive/dead/left] (table[s]: indices, tbfu_stata, tb_tbfu)

<the follow up data is created separately:>
use ${newstata}\indices, clear
recode dthlftyy 0/1900=. 9999=.
gen outcomdate=mdy(6,15,dthlftyy)
drop crsno
append using ${newstata}\tbfu_stata
gen dthdate=outcomdate if adl==2 //2=died
gen leftdate=outcomdate if adl==3 //3=left
append using ${newstata}\tb_tbfu
drop if adl==8 //8=unknown
replace intdate=. if dthdate~=. | leftdate~=. | alivedate~=.
egen lastdate=rowmax(intdate dthdate leftdate alivedate)
bys ident: egen lastfudate=max(lastdate)
gen lastadl=adl if lastdate==lastfudate
bys ident: egen lastfuoutcome=max(lastadl)
la val lastfuoutcome adl
keep ident lastfudate lastfuoutcome
format %td lastfudate
duplicates drop
save ${tempfiles}\fu_dates, replace  
<then merged into the main data file:>
merge m:1 ident using ${tempfiles}\fu_dates, keep(master match) nogen]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V392" name="newres" files="F1" intrvl="discrete">
      <location StartPos="1431" EndPos="1434" width="4" RecSegNo="1"/>
      <labl>
        Transfer to where
      </labl>
      <qstn>
        <qstnLit>
          Transfer to where
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        492
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V393" name="outdate" files="F1" intrvl="discrete">
      <location StartPos="1435" EndPos="1444" width="10" RecSegNo="1"/>
      <labl>
        Date outcome form filled
      </labl>
      <qstn>
        <qstnLit>
          Date outcome form filled
        </qstnLit>
      </qstn>
      <sumStat type="vald">
        6052
      </sumStat>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V394" name="noinfo" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="1445" EndPos="1445" width="1" RecSegNo="1"/>
      <labl>
        No info - pt died or transferred
      </labl>
      <qstn>
        <qstnLit>
          No info - pt died or transferred
        </qstnLit>
      </qstn>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        4084
      </sumStat>
      <sumStat type="invd">
        8827
      </sumStat>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          No
        </labl>
        <catStat type="freq">
          3806
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Yes
        </labl>
        <catStat type="freq">
          278
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          8
        </catValu>
        <labl>
          Unknown
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          9
        </catValu>
        <labl>
          Missing
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          8827
        </catStat>
      </catgry>
      <varFormat type="numeric" schema="other"/>
    </var>
  </dataDscr>
</codeBook>
