<?xml version='1.0' encoding='UTF-8'?>
<codeBook version="1.2.2" ID="MWI-MEIRU-CRSresidency-2002-v1" 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>
          crs_residency
        </titl>
        <IDNo>
          DDI-MWI-MEIRU-crsresidency-2002-v1
        </IDNo>
      </titlStmt>
      <prodStmt>
        <producer abbr="CK" affiliation="MEIRU" role="Documentation planning and supervision">
          Chifundo Kanjala
        </producer>
        <producer abbr="EM" affiliation="MEIRU" role="Metadata entry and editing">
          Elizabeth Munthali
        </producer>
        <producer abbr="EM" affiliation="LSHTM" role="Production of the documentation used to create this DDI document">
          Estelle McLean
        </producer>
        <prodDate date="2020-06-17">
          2020-06-17
        </prodDate>
        <software version="4.0.9" date="2013-04-23">
          Nesstar Publisher
        </software>
      </prodStmt>
      <distStmt>
        <depositr/>
      </distStmt>
    </citation>
    <docSrc>
      <titlStmt>
        <titl>
          crs_residency
        </titl>
      </titlStmt>
      <distStmt>
        <depositr/>
      </distStmt>
    </docSrc>
  </docDscr>
  <stdyDscr>
    <citation>
      <titlStmt>
        <titl>
          CRS Cleaned residency episodes
        </titl>
        <IDNo>
          MWI-MEIRU-CRSresidency-2002-v1
        </IDNo>
      </titlStmt>
      <rspStmt>
        <AuthEnty affiliation="London School of Hygein and Tropical Medicine">
          Malawi Epidemiology and Intervention Research Unit
        </AuthEnty>
        <othId>
          <p>
            MEIRU Core datamanagement team
          </p>
        </othId>
      </rspStmt>
      <prodStmt>
        <prodDate date="2020-06-17">
          2020-06-17
        </prodDate>
        <software version="4.0.9" date="2013-04-23">
          Nesstar Publisher
        </software>
      </prodStmt>
      <distStmt>
        <depositr/>
      </distStmt>
      <serStmt>
        <serName>
          Demographic Surveillance
        </serName>
      </serStmt>
      <verStmt>
        <version date="2020-06-17"/>
      </verStmt>
    </citation>
    <stdyInfo>
      <abstract>
        <![CDATA[crs_residency_episodes_clean datasets consist of episodes (with a start and a stop date) when people were resident in the CRS. Each individual may have multiple records, and records should be unique on ident, crshse and startdate.

The cleaning process first cleans data errors which result in overlapping episodes in the same house (e.g. when the dates of someone's episode overlap with another of their episodes in the same household) and then cleans the overlapping episodes in different houses: the latter may be data errors or they may be correct due to some men being head of multiple households if they are married polygamously. To distinguish between the errors and the polygamous episodes the dataset polyheads is merged in (a derived table made by house_head_list.do). The overlapping head episodes are kept for the _poly version of the output but not for the _nopoly version. The data cleaning may have resulted in some of the other variables not making sense, so they are altered as well.]]>
      </abstract>
      <sumDscr>
        <nation abbr="MWI">
          Malawi
        </nation>
        <anlyUnit>
          Individual
        </anlyUnit>
      </sumDscr>
    </stdyInfo>
    <method>
      <dataColl>
        <dataCollector abbr="MEIRU">
          Malawi Epidemiology and Intervention Research Unit
        </dataCollector>
        <collMode>
          Face-to-face [f2f]
        </collMode>
        <sources/>
      </dataColl>
    </method>
    <dataAccs>
      <setAvail>
        <origArch>
          Chilumba
        </origArch>
      </setAvail>
      <useStmt>
        <contact>
          Malawi Epidemiology and Intervention Research Unit
        </contact>
        <conditions>
          <![CDATA[These data are 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.]]>
        </conditions>
      </useStmt>
    </dataAccs>
  </stdyDscr>
  <fileDscr ID="F1" URI="crs_residency.Nesstar?Index=0&amp;Name=all_crs_members">
    <fileTxt>
      <fileName>
        all_crs_members.NSDstat
      </fileName>
      <dimensns>
        <caseQnty>
          79201
        </caseQnty>
        <varQnty>
          1
        </varQnty>
      </dimensns>
      <fileType>
        Nesstar 200801
      </fileType>
      <filePlac>
        Malawi Epidemiology and Interventions Research Unit
      </filePlac>
    </fileTxt>
  </fileDscr>
  <fileDscr ID="F2" URI="crs_residency.Nesstar?Index=1&amp;Name=crs_residency_episodes_clean_nopoly">
    <fileTxt>
      <fileName>
        crs_residency_episodes_clean_nopoly.NSDstat
      </fileName>
      <fileCont>
        <![CDATA[crs_residency_episodes_clean_nopoly.dta is a cleaned version of crs_memball which is stset ready for survival analysis. Polygamous heads are now only living in one household and any overlapping episodes have been modified so there is no double counting of person time. This dataset should be used for calculating rates and numbers of residents but not for locating people and households.	

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>
          139917
        </caseQnty>
        <varQnty>
          19
        </varQnty>
      </dimensns>
      <fileType>
        Nesstar 200801
      </fileType>
      <filePlac>
        Malawi Epidemiology and Interventions Research Unit
      </filePlac>
    </fileTxt>
  </fileDscr>
  <fileDscr ID="F3" URI="crs_residency.Nesstar?Index=2&amp;Name=crs_residency_episodes_clean_poly">
    <fileTxt>
      <fileName>
        crs_residency_episodes_clean_poly.NSDstat
      </fileName>
      <fileCont>
        <![CDATA[crs_residency_episodes_clean_poly.dta is a cleaned version of crs_memball. It differs from crs_residency_episodes_clean_nopoly.dta in that polygamous heads are living in all of their households. Any overlapping episodes of other people have been modified so there is no double counting of their person time. This dataset should NOT be used for calculating rates and numbers of residents but can be used for locating people and households.		
 
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>
          141407
        </caseQnty>
        <varQnty>
          14
        </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 (S)
      </labl>
      <sumStat type="vald">
        79201
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Unique identifier
      </txt>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V2" name="ident" files="F2" intrvl="discrete">
      <location StartPos="1" EndPos="7" width="7" RecSegNo="1"/>
      <labl>
        Unique identifier (S)
      </labl>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Unique identifier
      </txt>
      <codInstr>
        variable: ident(table[s]: crs_memball)
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V3" name="startdate" files="F2" intrvl="discrete">
      <location StartPos="8" EndPos="17" width="10" RecSegNo="1"/>
      <labl>
        Start date of episode (D)
      </labl>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="min">
        1995-10-10
      </sumStat>
      <sumStat type="max">
        2018-12-31
      </sumStat>
      <txt>
        Start date of episode
      </txt>
      <codInstr>
        <![CDATA[variable: startdate(table[s]: crs_memball)
startdate of some episodes may be changed during cleaning to remove polygamous episodes or data errors causing overlapping episodes]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V4" name="stopdate" files="F2" intrvl="discrete">
      <location StartPos="18" EndPos="27" width="10" RecSegNo="1"/>
      <labl>
        End date of episode (D)
      </labl>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="min">
        2002-09-06
      </sumStat>
      <sumStat type="max">
        2018-12-31
      </sumStat>
      <txt>
        End date of episode
      </txt>
      <codInstr>
        <![CDATA[variable: stopdate(table[s]: crs_memball)
stopdate of some episodes may be changed during cleaning to remove polygamous episodes or data errors causing overlapping episodes]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V5" name="crshse" files="F2" intrvl="discrete">
      <location StartPos="28" EndPos="34" width="7" RecSegNo="1"/>
      <labl>
        Household identifier (S)
      </labl>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Household identifier
      </txt>
      <codInstr>
        variable: crshse(table[s]: crs_memball)
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V6" name="rsnmovecenm" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="35" EndPos="35" width="1" RecSegNo="1"/>
      <labl>
        Reason for moving into household (S)
      </labl>
      <valrng>
        <range min="1" max="5"/>
      </valrng>
      <sumStat type="vald">
        89934
      </sumStat>
      <sumStat type="invd">
        49983
      </sumStat>
      <txt>
        Reason for moving into household
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          20896
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/sep
        </labl>
        <catStat type="freq">
          10729
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          education start/end
        </labl>
        <catStat type="freq">
          10197
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          work start/end
        </labl>
        <catStat type="freq">
          17574
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          30538
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          49983
        </catStat>
      </catgry>
      <codInstr>
        variable: rsnmovecenm(table[s]: crs_memball)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V7" name="rsnmovedep" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="36" EndPos="36" width="1" RecSegNo="1"/>
      <labl>
        Reason for moving out of household (S)
      </labl>
      <valrng>
        <range min="1" max="5"/>
      </valrng>
      <sumStat type="vald">
        90790
      </sumStat>
      <sumStat type="invd">
        49127
      </sumStat>
      <txt>
        Reason for moving out of household
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          15412
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/sep
        </labl>
        <catStat type="freq">
          11461
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          education start/end
        </labl>
        <catStat type="freq">
          10472
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          work start/end
        </labl>
        <catStat type="freq">
          24255
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          29190
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          49127
        </catStat>
      </catgry>
      <codInstr>
        variable: rsnmovedep(table[s]: crs_memball)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V8" name="gpssdeg" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="37" EndPos="38" width="2" RecSegNo="1"/>
      <labl>
        GPS coordinate: south degrees
      </labl>
      <valrng>
        <range min="10" max="10"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        GPS coordinate: south degrees
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V9" name="gpssmin" files="F2" dcml="0" intrvl="contin">
      <location StartPos="39" EndPos="44" width="6" RecSegNo="1"/>
      <labl>
        GPS coordinate: south minutes
      </labl>
      <valrng>
        <range UNITS="REAL" min="23.53" max="30.765"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <sumStat type="min">
        23.53
      </sumStat>
      <sumStat type="max">
        30.765
      </sumStat>
      <sumStat type="mean">
        27.156
      </sumStat>
      <sumStat type="stdev">
        1.458
      </sumStat>
      <txt>
        GPS coordinate: south degrees
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V10" name="gpsedeg" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="45" EndPos="46" width="2" RecSegNo="1"/>
      <labl>
        GPS coordinate: east degrees
      </labl>
      <valrng>
        <range min="34" max="34"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        GPS coordinate: east degrees
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V11" name="gpsemin" files="F2" dcml="0" intrvl="contin">
      <location StartPos="47" EndPos="52" width="6" RecSegNo="1"/>
      <labl>
        GPS coordinate: east minutes
      </labl>
      <valrng>
        <range UNITS="REAL" min="4.71" max="16.127"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <sumStat type="min">
        4.71
      </sumStat>
      <sumStat type="max">
        16.127
      </sumStat>
      <sumStat type="mean">
        11.739
      </sumStat>
      <sumStat type="stdev">
        2.474
      </sumStat>
      <txt>
        GPS coordinate: east minutes
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V12" name="sex" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="53" EndPos="53" width="1" RecSegNo="1"/>
      <labl>
        Sex of individual (S)
      </labl>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Sex of individual
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Male
        </labl>
        <catStat type="freq">
          63570
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Female
        </labl>
        <catStat type="freq">
          76347
        </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: sex (table[s]: gen_identity)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V13" name="birth_date" files="F2" intrvl="discrete">
      <location StartPos="54" EndPos="63" width="10" RecSegNo="1"/>
      <labl>
        Date of birth (D)
      </labl>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="min">
        1905-06-15
      </sumStat>
      <sumStat type="max">
        2018-12-31
      </sumStat>
      <txt>
        Date of birth
      </txt>
      <codInstr>
        <![CDATA[variable: birthdd (table[s]: gen_identity)
variable: birthmm (table[s]: gen_identity)
variable: birthyear (table[s]: gen_identity)
variable: birthest (table[s]: gen_identity)
Birth date is created from individual date elements on gen_identity: if day missing 15 is used, if month missing June is used, if only year estimate the mid-point of the estimate range is used]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V14" name="starttype" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="64" EndPos="64" width="1" RecSegNo="1"/>
      <labl>
        Reason for start of episode (D)
      </labl>
      <valrng>
        <range min="1" max="4"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Reason for start of episode
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Baseline recruit
        </labl>
        <catStat type="freq">
          28764
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Birth
        </labl>
        <catStat type="freq">
          20426
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          from CRS in-migration
        </labl>
        <catStat type="freq">
          47139
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          external in-migration
        </labl>
        <catStat type="freq">
          43588
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: starttype(table[s]: crs_memball)
Some start events maybe updated if they do not make sense in the context of other episodes.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V15" name="stoptype" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="65" EndPos="65" width="1" RecSegNo="1"/>
      <labl>
        Reason for end of episode (D)
      </labl>
      <valrng>
        <range min="1" max="4"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Reason for end of episode
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Present
        </labl>
        <catStat type="freq">
          45092
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Death
        </labl>
        <catStat type="freq">
          3987
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          to CRS out-migration
        </labl>
        <catStat type="freq">
          47139
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          external out-migration
        </labl>
        <catStat type="freq">
          43699
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: stoptype(table[s]: crs_memball)
The 'present' code is added for people who don't have an end event (last known still in the area), some end events maybe updated if they do not make sense in the context of other episodes.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V16" name="st" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="66" EndPos="66" width="1" RecSegNo="1"/>
      <labl>
        survival analysis variable (D)
      </labl>
      <valrng>
        <range min="1" max="1"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        survival analysis variable
      </txt>
      <codInstr>
        <![CDATA[The data are stset using the following code
stset stopdate, id(ident) failure(stoptype==2) origin(birth_date) scale(365.25) enter(startdate) time0(startdate)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V17" name="d" files="F2" dcml="0" intrvl="discrete">
      <location StartPos="67" EndPos="67" width="1" RecSegNo="1"/>
      <labl>
        survival analysis variable (D)
      </labl>
      <valrng>
        <range min="0" max="1"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        survival analysis variable
      </txt>
      <codInstr>
        <![CDATA[The data are stset using the following code
stset stopdate, id(ident) failure(stoptype==2) origin(birth_date) scale(365.25) enter(startdate) time0(startdate)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V18" name="origin" files="F2" dcml="0" intrvl="contin">
      <location StartPos="68" EndPos="73" width="6" RecSegNo="1"/>
      <labl>
        survival analysis variable (D)
      </labl>
      <valrng>
        <range min="-19923" max="21549"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <sumStat type="min">
        -19923
      </sumStat>
      <sumStat type="max">
        21549
      </sumStat>
      <sumStat type="mean">
        12298.218
      </sumStat>
      <sumStat type="stdev">
        6173.211
      </sumStat>
      <txt>
        survival analysis variable
      </txt>
      <codInstr>
        <![CDATA[The data are stset using the following code
stset stopdate, id(ident) failure(stoptype==2) origin(birth_date) scale(365.25) enter(startdate) time0(startdate)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V19" name="t" files="F2" dcml="0" intrvl="contin">
      <location StartPos="74" EndPos="92" width="19" RecSegNo="1"/>
      <labl>
        survival analysis variable (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="0.00136892539356605" max="110.280629705681"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <sumStat type="min">
        0.00137
      </sumStat>
      <sumStat type="max">
        110.281
      </sumStat>
      <sumStat type="mean">
        20.139
      </sumStat>
      <sumStat type="stdev">
        16.538
      </sumStat>
      <txt>
        survival analysis variable
      </txt>
      <codInstr>
        <![CDATA[The data are stset using the following code
stset stopdate, id(ident) failure(stoptype==2) origin(birth_date) scale(365.25) enter(startdate) time0(startdate)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V20" name="t0" files="F2" dcml="0" intrvl="contin">
      <location StartPos="93" EndPos="108" width="16" RecSegNo="1"/>
      <labl>
        survival analysis variable (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="0" max="101.494866529774"/>
      </valrng>
      <sumStat type="vald">
        139917
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <sumStat type="min">
        0
      </sumStat>
      <sumStat type="max">
        101.495
      </sumStat>
      <sumStat type="mean">
        16.127
      </sumStat>
      <sumStat type="stdev">
        15.648
      </sumStat>
      <txt>
        survival analysis variable
      </txt>
      <codInstr>
        <![CDATA[The data are stset using the following code
stset stopdate, id(ident) failure(stoptype==2) origin(birth_date) scale(365.25) enter(startdate) time0(startdate)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V21" name="ident" files="F3" intrvl="discrete">
      <location StartPos="1" EndPos="7" width="7" RecSegNo="1"/>
      <labl>
        Unique identifier (S)
      </labl>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Unique identifier
      </txt>
      <codInstr>
        variable: ident(table[s]: crs_memball)
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V22" name="startdate" files="F3" intrvl="discrete">
      <location StartPos="8" EndPos="17" width="10" RecSegNo="1"/>
      <labl>
        Start date of episode (D)
      </labl>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="min">
        1995-10-10
      </sumStat>
      <sumStat type="max">
        2018-12-31
      </sumStat>
      <txt>
        Start date of episode
      </txt>
      <codInstr>
        <![CDATA[variable: startdate(table[s]: crs_memball)
startdate of some episodes may be changed during cleaning to remove data errors causing overlapping episodes]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V23" name="stopdate" files="F3" intrvl="discrete">
      <location StartPos="18" EndPos="27" width="10" RecSegNo="1"/>
      <labl>
        End date of episode (D)
      </labl>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="min">
        2002-08-21
      </sumStat>
      <sumStat type="max">
        2018-12-31
      </sumStat>
      <txt>
        End date of episode
      </txt>
      <codInstr>
        <![CDATA[variable: stopdate(table[s]: crs_memball)
stopdate of some episodes may be changed during cleaning to remove data errors causing overlapping episodes]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V24" name="crshse" files="F3" intrvl="discrete">
      <location StartPos="28" EndPos="34" width="7" RecSegNo="1"/>
      <labl>
        Household identifier (S)
      </labl>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Household identifier
      </txt>
      <codInstr>
        variable: crshse(table[s]: crs_memball)
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V25" name="rsnmovecenm" files="F3" dcml="0" intrvl="discrete">
      <location StartPos="35" EndPos="35" width="1" RecSegNo="1"/>
      <labl>
        Reason for moving into household (S)
      </labl>
      <valrng>
        <range min="1" max="5"/>
      </valrng>
      <sumStat type="vald">
        91164
      </sumStat>
      <sumStat type="invd">
        50243
      </sumStat>
      <txt>
        Reason for moving into household
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          21812
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/sep
        </labl>
        <catStat type="freq">
          10731
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          education start/end
        </labl>
        <catStat type="freq">
          10200
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          work start/end
        </labl>
        <catStat type="freq">
          17668
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          30753
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          50243
        </catStat>
      </catgry>
      <codInstr>
        variable: rsnmovecenm(table[s]: crs_memball)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V26" name="rsnmovedep" files="F3" dcml="0" intrvl="discrete">
      <location StartPos="36" EndPos="36" width="1" RecSegNo="1"/>
      <labl>
        Reason for moving out of household (S)
      </labl>
      <valrng>
        <range min="1" max="5"/>
      </valrng>
      <sumStat type="vald">
        91828
      </sumStat>
      <sumStat type="invd">
        49579
      </sumStat>
      <txt>
        Reason for moving out of household
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Marriage
        </labl>
        <catStat type="freq">
          15430
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Divorce/sep
        </labl>
        <catStat type="freq">
          12019
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          education start/end
        </labl>
        <catStat type="freq">
          10479
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          work start/end
        </labl>
        <catStat type="freq">
          24452
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          29448
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          49579
        </catStat>
      </catgry>
      <codInstr>
        variable: rsnmovedep(table[s]: crs_memball)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V27" name="gpssdeg" files="F3" dcml="0" intrvl="discrete">
      <location StartPos="37" EndPos="38" width="2" RecSegNo="1"/>
      <labl>
        GPS coordinate: south degrees
      </labl>
      <valrng>
        <range min="10" max="10"/>
      </valrng>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        GPS coordinate: south degrees
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V28" name="gpssmin" files="F3" dcml="0" intrvl="contin">
      <location StartPos="39" EndPos="44" width="6" RecSegNo="1"/>
      <labl>
        GPS coordinate: south minutes
      </labl>
      <valrng>
        <range UNITS="REAL" min="23.53" max="30.765"/>
      </valrng>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <sumStat type="min">
        23.53
      </sumStat>
      <sumStat type="max">
        30.765
      </sumStat>
      <sumStat type="mean">
        27.158
      </sumStat>
      <sumStat type="stdev">
        1.459
      </sumStat>
      <txt>
        GPS coordinate: south minutes
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V29" name="gpsedeg" files="F3" dcml="0" intrvl="discrete">
      <location StartPos="45" EndPos="46" width="2" RecSegNo="1"/>
      <labl>
        GPS coordinate: east degrees
      </labl>
      <valrng>
        <range min="34" max="34"/>
      </valrng>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        GPS coordinate: east degrees
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V30" name="gpsemin" files="F3" dcml="0" intrvl="contin">
      <location StartPos="47" EndPos="52" width="6" RecSegNo="1"/>
      <labl>
        GPS coordinate: east minutes
      </labl>
      <valrng>
        <range UNITS="REAL" min="4.71" max="16.127"/>
      </valrng>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <sumStat type="min">
        4.71
      </sumStat>
      <sumStat type="max">
        16.127
      </sumStat>
      <sumStat type="mean">
        11.731
      </sumStat>
      <sumStat type="stdev">
        2.475
      </sumStat>
      <txt>
        GPS coordinate: east minutes
      </txt>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V31" name="sex" files="F3" dcml="0" intrvl="discrete">
      <location StartPos="53" EndPos="53" width="1" RecSegNo="1"/>
      <labl>
        Sex of individual (S)
      </labl>
      <valrng>
        <range min="0" max="9"/>
      </valrng>
      <invalrng>
        <item VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Sex of individual
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Male
        </labl>
        <catStat type="freq">
          65059
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Female
        </labl>
        <catStat type="freq">
          76348
        </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: sex (table[s]: gen_identity)
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V32" name="birth_date" files="F3" intrvl="discrete">
      <location StartPos="54" EndPos="63" width="10" RecSegNo="1"/>
      <labl>
        Date of birth (D)
      </labl>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="min">
        1905-06-15
      </sumStat>
      <sumStat type="max">
        2018-12-31
      </sumStat>
      <txt>
        Date of birth
      </txt>
      <codInstr>
        <![CDATA[variable: birthdd (table[s]: gen_identity)
variable: birthmm (table[s]: gen_identity)
variable: birthyear (table[s]: gen_identity)
variable: birthest (table[s]: gen_identity)
Birth date is created from individual date elements on gen_identity: if day missing 15 is used, if month missing June is used, if only year estimate the mid-point of the estimate range is used]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V33" name="starttype" files="F3" dcml="0" intrvl="discrete">
      <location StartPos="64" EndPos="64" width="1" RecSegNo="1"/>
      <labl>
        Reason for start of episode (D)
      </labl>
      <valrng>
        <range min="1" max="4"/>
      </valrng>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Reason for start of episode
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Baseline recruit
        </labl>
        <catStat type="freq">
          28764
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Birth
        </labl>
        <catStat type="freq">
          20426
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          from CRS in-migration
        </labl>
        <catStat type="freq">
          48431
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          external in-migration
        </labl>
        <catStat type="freq">
          43786
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: starttype(table[s]: crs_memball)
Some start events maybe updated if they do not make sense in the context of other episodes.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V34" name="stoptype" files="F3" dcml="0" intrvl="discrete">
      <location StartPos="65" EndPos="65" width="1" RecSegNo="1"/>
      <labl>
        Reason for end of episode (D)
      </labl>
      <valrng>
        <range min="1" max="4"/>
      </valrng>
      <sumStat type="vald">
        141407
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Reason for end of episode
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Present
        </labl>
        <catStat type="freq">
          44943
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Death
        </labl>
        <catStat type="freq">
          3971
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          to CRS out-migration
        </labl>
        <catStat type="freq">
          48431
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          external out-migration
        </labl>
        <catStat type="freq">
          44062
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: stoptype(table[s]: crs_memball)
The 'present' code is added for people who don't have an end event (last known still in the area), some end events maybe updated if they do not make sense in the context of other episodes.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
  </dataDscr>
</codeBook>
