<?xml version='1.0' encoding='UTF-8'?>
<codeBook version="1.2.2" ID="MWI-MEIRU-bioimp-handgrip-combined-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>
          bioimp_handgrip_combined
        </titl>
        <IDNo>
          DDI-MWI-MEIRU-bioimp-handgrip-combined-2020-v01
        </IDNo>
      </titlStmt>
      <prodStmt>
        <producer abbr="TC" affiliation="MEIRU" role="Metadata entry and editing Officer">
          Themba Chirwa
        </producer>
        <producer abbr="EM" affiliation=" MEIRU" role="Metadata Supervisor">
          Elizabeth Munthali
        </producer>
        <producer abbr="CK" affiliation="MEIRU" role="Data Documentation project management">
          Chifundo Kanjala
        </producer>
        <producer abbr="EM" affiliation="LSHTM and MEIRU" role="Production of the documentation used to create this DDI document">
          Estelle McLean
        </producer>
        <producer abbr="MC" affiliation="LSHTM and MEIRU" role="Study level metadata">
          Mia Crampin
        </producer>
        <producer abbr="MEIRU" role="Agency">
          Malawi Epidemiology and Intervention Research Unit
        </producer>
        <prodDate date="2020-06-16">
          2020-06-16
        </prodDate>
        <software version="4.0.9" date="2013-04-23">
          Nesstar Publisher
        </software>
      </prodStmt>
      <verStmt>
        <version>
          version 1 (June 2020)
        </version>
        <notes>
          <![CDATA[v1:  Edited data, first version, for internal use only]]>
        </notes>
      </verStmt>
    </citation>
  </docDscr>
  <stdyDscr>
    <citation>
      <titlStmt>
        <titl>
          All Bioimpedance and Hand-grip Data (Karonga and Lilongwe combined data)
        </titl>
        <IDNo>
          MWI-MEIRU-bioimp-handgrip-combined-v01
        </IDNo>
      </titlStmt>
      <prodStmt>
        <software version="4.0.9" date="2013-04-23">
          Nesstar Publisher
        </software>
      </prodStmt>
      <verStmt>
        <version date="2020-06-16"/>
      </verStmt>
    </citation>
    <stdyInfo>
      <abstract>
        Data on bio-impedance and hand-grip were collected in several studies in Karonga and Lilongwe, and these data are combined into one dataset using the do-file bioimp_handgrip_combine.do
      </abstract>
      <sumDscr>
        <collDate date="2016-06-26" event="start" cycle="1"/>
        <collDate date="2019-06-01" event="end" cycle="1"/>
        <nation>
          Malawi
        </nation>
        <geogCover>
          Karonga and Lilongwe
        </geogCover>
        <anlyUnit>
          Individual
        </anlyUnit>
      </sumDscr>
    </stdyInfo>
    <method>
      <dataColl>
        <collMode>
          Face-to-face [f2f]
        </collMode>
        <sources/>
      </dataColl>
    </method>
    <dataAccs>
      <setAvail>
        <origArch>
          MEIRU
        </origArch>
      </setAvail>
      <useStmt>
        <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.]]>
        </conditions>
      </useStmt>
    </dataAccs>
  </stdyDscr>
  <fileDscr ID="F1" URI="bioimp_handgrip_combined.Nesstar?Index=0&amp;Name=bioimp_handgrip_combined">
    <fileTxt>
      <fileName>
        bioimp_handgrip_combined.NSDstat
      </fileName>
      <fileCont>
        <![CDATA[Data on bio-impedance and hand-grip were collected in several studies in Karonga and Lilongwe, and these data are combined into one dataset using the do-file bioimp_handgrip_combine.do						
The variables available are slightly different for each study so each dataset are harmonised before being appended together.						
An attempt is made to have at least one set of fat mass (kg & %) and fat-free mass (kg &%) variables for each record: in some studies one or all of these were produced by the bioimpendace machine and recorded, in others the impedance value from the machine was recorde, in others the impedance value was not recorded but the resistance value was. To account for all these differences 3 different versions of the body mass variable are given:						
*_M	values directly from the machine, or derived from machine values					
*_I	values calculated using the weight/height and the impedance value					
*_R	values calculated using the weight/height and the resistance value					

Data on bio-impedance and hand-grip were collected in the following studies:		                                                    
ARK	 African Research into Kidney Disease Study	                                                                                                                    
GAP	Study of growth and stunting in adolescents	                                                                                                         	
KDU	Kidney disease of unknown origin study                                                                                                                           	
NUT	Development of nutritional strategies for diabetes prevention in Malawian adults at high diabetes risks                       
PHD	Pre-hypertension, pre-diabetes study	                                                                                                                                         	

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>
          3427
        </caseQnty>
        <varQnty>
          33
        </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 (Karonga) (S)
      </labl>
      <sumStat type="vald">
        1772
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Unique identifier (Karonga)
      </txt>
      <codInstr>
        <![CDATA[variable: ident (table[s]: arkk_fieldlog, kduk_fieldlog, phdk_fieldlog, gap_combined)
variable: ident_manual (table[s]: NUTdata_KAR)]]>
      </codInstr>
      <varFormat type="character" schema="other"/>
      <notes>
        <![CDATA[Automatically filled by program
valid check digit]]>
      </notes>
    </var>
    <var ID="V2" name="stid" files="F1" intrvl="discrete">
      <location StartPos="8" EndPos="17" width="10" RecSegNo="1"/>
      <labl>
        Study id (S)
      </labl>
      <sumStat type="vald">
        3203
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <codInstr>
        variable: stid (table[s]: arkk_fieldlog, arkl_fieldlog, kduk_fieldlog, kdul_fieldlog, phdk_fieldlog, phdl_fieldlog, NUTdata_KAR,
      </codInstr>
      <varFormat type="character" schema="other"/>
      <notes>
        <![CDATA[Available in versions -, 2
range 1590000 :9999999
Please scan correct STID barcode
Must be blank if visit <> 1 - 3 or B
Available in versions -, 1, 2
Available in versions -, 1
> 1590000 and  < 99999999
Valid STID or blank]]>
      </notes>
    </var>
    <var ID="V3" name="study" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="18" EndPos="18" width="1" RecSegNo="1"/>
      <labl>
        Source of data (coded) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="1" max="5"/>
      </valrng>
      <sumStat type="vald">
        3427
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Source of data (coded)
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          ARK
        </labl>
        <catStat type="freq">
          1024
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          GAP
        </labl>
        <catStat type="freq">
          897
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          KDU
        </labl>
        <catStat type="freq">
          1145
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          4
        </catValu>
        <labl>
          NUT
        </labl>
        <catStat type="freq">
          101
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          5
        </catValu>
        <labl>
          PHD
        </labl>
        <catStat type="freq">
          260
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[
gen study=1 if source=="ARK"
replace study=2 if source=="GAP"
replace study=3 if source=="KDU"
replace study=4 if source=="NUT"
replace study=5 if source=="PHD"
la def study 1 "ARK" 2 "GAP" 3 "KDU" 4 "NUT" 5 "PHD"
la val study study]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V4" name="source" files="F1" intrvl="discrete">
      <location StartPos="19" EndPos="21" width="3" RecSegNo="1"/>
      <labl>
        Source of data (text) (D)
      </labl>
      <sumStat type="vald">
        3427
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Source of data (text)
      </txt>
      <catgry>
        <catValu>
          ARK
        </catValu>
        <catStat type="freq">
          1024
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          GAP
        </catValu>
        <catStat type="freq">
          897
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          KDU
        </catValu>
        <catStat type="freq">
          1145
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          NUT
        </catValu>
        <catStat type="freq">
          101
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          PHD
        </catValu>
        <catStat type="freq">
          260
        </catStat>
      </catgry>
      <codInstr>
        Source variable is created when data are processed prior to appending.
      </codInstr>
      <varFormat type="character" schema="other"/>
    </var>
    <var ID="V5" name="site" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="22" EndPos="22" width="1" RecSegNo="1"/>
      <labl>
        Site of data (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="1" max="3"/>
      </valrng>
      <sumStat type="vald">
        3427
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Site of data
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Karonga
        </labl>
        <catStat type="freq">
          1721
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          2
        </catValu>
        <labl>
          Lilongwe
        </labl>
        <catStat type="freq">
          1706
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          3
        </catValu>
        <labl>
          Other
        </labl>
        <catStat type="freq">
          0
        </catStat>
      </catgry>
      <codInstr>
        Site variable is created when data are processed prior to appending.Site variable is created when data are processed prior to appending.
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V6" name="birth_date" files="F1" intrvl="discrete">
      <location StartPos="23" EndPos="32" width="10" RecSegNo="1"/>
      <labl>
        Date of birth (D)
      </labl>
      <sumStat type="vald">
        3412
      </sumStat>
      <sumStat type="min">
        1915-06-15
      </sumStat>
      <sumStat type="max">
        2005-01-13
      </sumStat>
      <txt>
        Date of birth
      </txt>
      <codInstr>
        variable: birth_date (table[s]: gen_identity [derived table], genl_identity [derived table])
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
    </var>
    <var ID="V7" name="sex" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="33" EndPos="33" width="1" RecSegNo="1"/>
      <labl>
        Sex (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="0" max="9"/>
      </valrng>
      <invalrng>
        <item UNITS="REAL" VALUE="9"/>
      </invalrng>
      <sumStat type="vald">
        3421
      </sumStat>
      <sumStat type="invd">
        6
      </sumStat>
      <txt>
        Sex
      </txt>
      <catgry>
        <catValu>
          0
        </catValu>
        <labl>
          Male
        </labl>
        <catStat type="freq">
          1475
        </catStat>
      </catgry>
      <catgry>
        <catValu>
          1
        </catValu>
        <labl>
          Female
        </labl>
        <catStat type="freq">
          1946
        </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">
          6
        </catStat>
      </catgry>
      <codInstr>
        variable: sex (table[s]: gen_identity [derived table], genl_identity [derived table])
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        <![CDATA[Available in versions -, 1, 2
Available in versions -, 1
Must be entered if stdypl = 2
1=male 2= female: Lilongwe only]]>
      </notes>
    </var>
    <var ID="V8" name="age" files="F1" dcml="0" intrvl="contin">
      <location StartPos="34" EndPos="36" width="3" RecSegNo="1"/>
      <labl>
        Age at measurements (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="12" max="103"/>
      </valrng>
      <sumStat type="vald">
        3412
      </sumStat>
      <sumStat type="invd">
        15
      </sumStat>
      <txt>
        Age at measurements
      </txt>
      <codInstr>
        <![CDATA[variable: birth_date (table[s]: gen_identity [derived table], genl_identity [derived table])
variable: intdate (table[s]: this dataset)
gen age=int((intdate-birth_date)/365.25) if birth_date~=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V9" name="intdate" files="F1" intrvl="discrete">
      <location StartPos="37" EndPos="46" width="10" RecSegNo="1"/>
      <labl>
        Date of measurements (S)
      </labl>
      <sumStat type="vald">
        3427
      </sumStat>
      <txt>
        Date of measurements
      </txt>
      <codInstr>
        <![CDATA[variable: intdate (table[s]: arkk_arkq, arkl_arkq, kduk_kduq, kdul_kduq, phdk_hsbc, phdl_hsbc)
variable: int_date (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: a_intdt (table[s]: gap_combined)]]>
      </codInstr>
      <varFormat type="character" formatname="Nesstar.date" schema="other" category="date"/>
      <notes>
        <![CDATA[Available in versions -, 2
Date of interview should not be in the future
Available in versions -, 1, 2
Available in versions -, 1]]>
      </notes>
    </var>
    <var ID="V10" name="weight" files="F1" dcml="0" intrvl="contin">
      <location StartPos="47" EndPos="49" width="3" RecSegNo="1"/>
      <labl>
        Weight in kg (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="21" max="135"/>
      </valrng>
      <sumStat type="vald">
        3427
      </sumStat>
      <sumStat type="invd">
        0
      </sumStat>
      <txt>
        Weight in kg
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: arkk_arkq, arkl_arkq, phdk_hsbc, phdl_hsbc)
variable: weightf (table[s]: kduk_kduq, kdul_kduq, phdk_phdq, phdl_phdq)
variable: weights (table[s]: kduk_kduq, kdul_kduq, phdk_phdq, phdl_phdq)
variable: weight_kg_hw (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: a_wt (table[s]: gap_combined)

<KDU data:>
egen weight=rowmean(weightf weights)
<PHD data:>
egen weight2=rowmean(weightf weights weight)
drop weight
rename weight2 weight]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        <![CDATA[Available in versions -, 2
range 30 : 150
Available in versions -, 1, 2]]>
      </notes>
    </var>
    <var ID="V11" name="height" files="F1" dcml="0" intrvl="contin">
      <location StartPos="50" EndPos="65" width="16" RecSegNo="1"/>
      <labl>
        Height in cm (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="112.599998474121" max="197.949996948242"/>
      </valrng>
      <sumStat type="vald">
        3415
      </sumStat>
      <sumStat type="invd">
        12
      </sumStat>
      <txt>
        Height in cm
      </txt>
      <codInstr>
        <![CDATA[variable: height (table[s]: arkk_arkq, arkl_arkq)
variable: heightf (table[s]: kduk_kduq, kdul_kduq, phdk_phdq, phdl_phdq)
variable: heights (table[s]: kduk_kduq, kdul_kduq, phdk_phdq, phdl_phdq)
variable: height_cm_hw (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: height_final (table[s]: gap_combined)

<KDU & PHD data:>
egen height=rowmean(heightf heights)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        <![CDATA[Available in versions -, 2
range 120 : 190
State in the height coment, if hairdo prevents sliding part of measuring rod from pressing flat against head:
Available in versions -, 1, 2]]>
      </notes>
    </var>
    <var ID="V12" name="BMI" files="F1" dcml="0" intrvl="contin">
      <location StartPos="66" EndPos="81" width="16" RecSegNo="1"/>
      <labl>
        Body mass index (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="11.8999996185303" max="50.5"/>
      </valrng>
      <sumStat type="vald">
        3415
      </sumStat>
      <sumStat type="invd">
        12
      </sumStat>
      <txt>
        Body mass index
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: height (table[s]: this dataset)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V13" name="impval" files="F1" dcml="0" intrvl="contin">
      <location StartPos="82" EndPos="84" width="3" RecSegNo="1"/>
      <labl>
        Impedance value (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="50" max="899"/>
      </valrng>
      <sumStat type="vald">
        2711
      </sumStat>
      <sumStat type="invd">
        716
      </sumStat>
      <txt>
        Impedance value
      </txt>
      <codInstr>
        <![CDATA[variable: biovalf (table[s]: arkk_arkq, arkl_arkq, kduk_kduq, kdul_kduq)
variable: biovals (table[s]: arkk_arkq, arkl_arkq, kduk_kduq, kdul_kduq)
variable: imp_final (table[s]: gap_combined)

<ARK & KDU data:>
egen impval=rowmean(biovalf biovals)
<NUT data:>
egen impval=rowmean(imp_ohms_bs imp_ohms_bs_2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V14" name="resval" files="F1" dcml="0" intrvl="contin">
      <location StartPos="85" EndPos="87" width="3" RecSegNo="1"/>
      <labl>
        Resistance value (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="416" max="846"/>
      </valrng>
      <sumStat type="vald">
        551
      </sumStat>
      <sumStat type="invd">
        2876
      </sumStat>
      <txt>
        Resistance value
      </txt>
      <codInstr>
        <![CDATA[variable: resistance_ohms_bs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: resistance_ohms_bs_2 (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: res_final (table[s]: gap_combined)

<NUT data:>
egen resval=rowmean(resistance_ohms_bs resistance_ohms_bs_2)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V15" name="reacval" files="F1" dcml="0" intrvl="contin">
      <location StartPos="88" EndPos="103" width="16" RecSegNo="1"/>
      <labl>
        Reactance value (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="34.2999992370606" max="91.9000015258789"/>
      </valrng>
      <sumStat type="vald">
        561
      </sumStat>
      <sumStat type="invd">
        2866
      </sumStat>
      <txt>
        Reactance value
      </txt>
      <codInstr>
        <![CDATA[variable: reactance (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: reactance_2 (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: reac_final (table[s]: gap_combined)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V16" name="fatmass_M" files="F1" dcml="0" intrvl="contin">
      <location StartPos="104" EndPos="119" width="16" RecSegNo="1"/>
      <labl>
        Fat mass in KG (machine value) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="2" max="83.8499984741211"/>
      </valrng>
      <sumStat type="vald">
        2294
      </sumStat>
      <sumStat type="invd">
        1133
      </sumStat>
      <txt>
        Fat mass in KG (machine value)
      </txt>
      <codInstr>
        <![CDATA[variable: biofmassf (table[s]: arkk_arkq, arkl_arkq, kduk_kduq, kdul_kduq)
variable: biofmasss (table[s]: arkk_arkq, arkl_arkq, kduk_kduq, kdul_kduq)
variable: bodyf (table[s]: phdk_hsbc, phdl_hsbc)
variable: weight (table[s]: this dataset)
variable: fat_mass_kg_bs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: fat_mass_kg_bs_2 (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: dropped_M (table[s]: this dataset)

<ARK &KDU data:>
egen fatmass_M=rowmean(biofmassf biofmasss)
<PHD data:>
gen fatmass_M=weight*(fatmasspc_M/100)
<NUT data:>
egen fatmass_M=rowmean(fat_mass_kg_bs fat_mass_kg_bs_2)
<remove inconsistent data from combined data:>
foreach var in fatmass_M fatmasspc_M ffmass_M ffmasspc_M {
	replace `var'=. if dropped_M==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V17" name="fatmass_I" files="F1" dcml="0" intrvl="contin">
      <location StartPos="120" EndPos="135" width="16" RecSegNo="1"/>
      <labl>
        Fat mass in KG (value calculated using impedance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="2.00786447525024" max="75.6596832275391"/>
      </valrng>
      <sumStat type="vald">
        2351
      </sumStat>
      <sumStat type="invd">
        1076
      </sumStat>
      <txt>
        Fat mass in KG (value calculated using impedance)
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: ffmass_I (table[s]: this dataset)
variable: dropped_I (table[s]: this dataset)

gen fatmass_I=weight-ffmass_I if ffmass_I~=. & weight~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_I fatmasspc_I ffmass_I ffmasspc_I {
	replace `var'=. if dropped_I==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V18" name="fatmass_R" files="F1" dcml="0" intrvl="contin">
      <location StartPos="136" EndPos="151" width="16" RecSegNo="1"/>
      <labl>
        Fat mass in KG (value calculated using resistance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="2.0269935131073" max="49.1197624206543"/>
      </valrng>
      <sumStat type="vald">
        363
      </sumStat>
      <sumStat type="invd">
        3064
      </sumStat>
      <txt>
        Fat mass in KG (value calculated using resistance)
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: ffmass_R (table[s]: this dataset)
variable: dropped_R (table[s]: this dataset)

gen fatmass_R=weight-ffmass_R if ffmass_R~=. & weight~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_R fatmasspc_R ffmass_R ffmasspc_R {
	replace `var'=. if dropped_R==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V19" name="fatmasspc_M" files="F1" dcml="0" intrvl="contin">
      <location StartPos="152" EndPos="167" width="16" RecSegNo="1"/>
      <labl>
        Fat mass % (machine value) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="3.15384608048659" max="66.1676658127836"/>
      </valrng>
      <sumStat type="vald">
        2294
      </sumStat>
      <sumStat type="invd">
        1133
      </sumStat>
      <txt>
        Fat mass % (machine value)
      </txt>
      <codInstr>
        <![CDATA[variable: bodyf (table[s]: phdk_hsbc, phdl_hsbc)
variable: fat_mass_percent_bs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: fat_mass_percent_bs_2 (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: dropped_M (table[s]: this dataset)
<NUT data:>
egen fatmasspc_M=rowmean(fat_mass_percent_bs fat_mass_percent_bs_2)
<combined data:>
replace fatmasspc_M=100*(fatmass_M/weight) if weight~=. & fatmass_M~=. & fatmasspc_M==.
<remove inconsistent data from combined data:>
foreach var in fatmass_M fatmasspc_M ffmass_M ffmasspc_M {
	replace `var'=. if dropped_M==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        Available in versions -, 1
      </notes>
    </var>
    <var ID="V20" name="fatmasspc_I" files="F1" dcml="0" intrvl="contin">
      <location StartPos="168" EndPos="183" width="16" RecSegNo="1"/>
      <labl>
        Fat mass % (value calculated using impedance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="3.42815566062927" max="56.0442085266113"/>
      </valrng>
      <sumStat type="vald">
        2351
      </sumStat>
      <sumStat type="invd">
        1076
      </sumStat>
      <txt>
        Fat mass % (value calculated using impedance)
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: fatmass_I (table[s]: this dataset)
variable: dropped_I (table[s]: this dataset)

gen fatmasspc_I=100*(fatmass_I/weight) if weight~=. & fatmass_I~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_I fatmasspc_I ffmass_I ffmasspc_I {
	replace `var'=. if dropped_I==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V21" name="fatmasspc_R" files="F1" dcml="0" intrvl="contin">
      <location StartPos="184" EndPos="199" width="16" RecSegNo="1"/>
      <labl>
        Fat mass % (value calculated using resistance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="4.71616315841675" max="49.2181968688965"/>
      </valrng>
      <sumStat type="vald">
        363
      </sumStat>
      <sumStat type="invd">
        3064
      </sumStat>
      <txt>
        Fat mass % (value calculated using resistance)
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: fatmass_R (table[s]: this dataset)
variable: dropped_R (table[s]: this dataset)

gen fatmasspc_R=100*(fatmass_R/weight) if weight~=. & fatmass_R~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_R fatmasspc_R ffmass_R ffmasspc_R {
	replace `var'=. if dropped_R==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V22" name="ffmass_M" files="F1" dcml="0" intrvl="contin">
      <location StartPos="200" EndPos="215" width="16" RecSegNo="1"/>
      <labl>
        Fat-free mass in KG (machine value) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="11.8000001907349" max="80.3000030517578"/>
      </valrng>
      <sumStat type="vald">
        2294
      </sumStat>
      <sumStat type="invd">
        1133
      </sumStat>
      <txt>
        Fat-free mass in KG (machine value)
      </txt>
      <codInstr>
        <![CDATA[variable: bioffmassf (table[s]: arkk_arkq, arkl_arkq)
variable: bioffmasss (table[s]: arkk_arkq, arkl_arkq)
variable: bioffreef (table[s]: kduk_kduq, kdul_kduq)
variable: bioffrees (table[s]: kduk_kduq, kdul_kduq)
variable: weight (table[s]: this dataset)
variable: fatmass_M (table[s]: this dataset)
variable: lean_kg_bs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: lean_kg_bs_2 (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: dropped_M (table[s]: this dataset)

<ARK data:>
egen ffmass_M=rowmean(bioffmassf bioffmasss)
<KDU data:>
egen ffmass_M=rowmean(bioffreef bioffrees)
<PHD data:>
gen ffmass_M=weight-fatmass_M
<NUT data:>
egen ffmass_M=rowmean(lean_kg_bs lean_kg_bs_2)
<remove inconsistent data from combined data:>
foreach var in fatmass_M fatmasspc_M ffmass_M ffmasspc_M {
	replace `var'=. if dropped_M==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V23" name="ffmass_I" files="F1" dcml="0" intrvl="contin">
      <location StartPos="216" EndPos="231" width="16" RecSegNo="1"/>
      <labl>
        Fat-free mass in KG (value calculated using impedance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="28.7454299926758" max="84.9832229614258"/>
      </valrng>
      <sumStat type="vald">
        2351
      </sumStat>
      <sumStat type="invd">
        1076
      </sumStat>
      <txt>
        Fat-free mass in KG (value calculated using impedance)
      </txt>
      <codInstr>
        <![CDATA[variable: height (table[s]: this dataset)
variable: weight (table[s]: this dataset)
variable: impval (table[s]: this dataset)
variable: sex (table[s]: this dataset)
variable: dropped_I (table[s]: this dataset)

gen ffmass_I=-10.68+(0.65*(height^2/impval))+(0.26*weight)+(0.02*impval) if sex==0 & height~=. & weight~=. & impval~=. //male
replace ffmass_I=-9.53+(0.69*(height^2/impval))+(0.17*weight)+(0.02*impval) if sex==1 & height~=. & weight~=. & impval~=. //female
<remove inconsistent data from combined data:>
foreach var in fatmass_I fatmasspc_I ffmass_I ffmasspc_I {
	replace `var'=. if dropped_I==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V24" name="ffmass_R" files="F1" dcml="0" intrvl="contin">
      <location StartPos="232" EndPos="247" width="16" RecSegNo="1"/>
      <labl>
        Fat-free mass in KG (value calculated using resistance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="28.7804069519043" max="76.4474945068359"/>
      </valrng>
      <sumStat type="vald">
        363
      </sumStat>
      <sumStat type="invd">
        3064
      </sumStat>
      <txt>
        Fat-free mass in KG (value calculated using resistance)
      </txt>
      <codInstr>
        <![CDATA[variable: height (table[s]: this dataset)
variable: weight (table[s]: this dataset)
variable: resval (table[s]: this dataset)
variable: sex (table[s]: this dataset)
variable: dropped_R (table[s]: this dataset)

gen ffmass_R=-10.68+(0.65*(height^2/resval))+(0.26*weight)+(0.02*resval) if sex==0 & height~=. & weight~=. & resval~=. //male
replace ffmass_R=-9.53+(0.69*(height^2/resval))+(0.17*weight)+(0.02*resval) if sex==1 & height~=. & weight~=. & resval~=. //female
<remove inconsistent data from combined data:>
foreach var in fatmass_R fatmasspc_R ffmass_R ffmasspc_R {
	replace `var'=. if dropped_R==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V25" name="ffmasspc_M" files="F1" dcml="0" intrvl="contin">
      <location StartPos="248" EndPos="263" width="16" RecSegNo="1"/>
      <labl>
        Fat-free mass % (machine value) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="35.3293418884277" max="96.8461532592774"/>
      </valrng>
      <sumStat type="vald">
        2294
      </sumStat>
      <sumStat type="invd">
        1133
      </sumStat>
      <txt>
        Fat-free mass % (machine value)
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: ffmass_M (table[s]: this dataset)
variable: dropped_M (table[s]: this dataset)
gen ffmasspc_M=100*(ffmass_M/weight) if weight~=. & ffmass_M~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_M fatmasspc_M ffmass_M ffmasspc_M {
	replace `var'=. if dropped_M==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V26" name="ffmasspc_I" files="F1" dcml="0" intrvl="contin">
      <location StartPos="264" EndPos="279" width="16" RecSegNo="1"/>
      <labl>
        Fat-free mass % (value calculated using impedance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="43.9557914733887" max="96.5718460083008"/>
      </valrng>
      <sumStat type="vald">
        2351
      </sumStat>
      <sumStat type="invd">
        1076
      </sumStat>
      <txt>
        Fat-free mass % (value calculated using impedance)
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: ffmass_I (table[s]: this dataset)
variable: dropped_I (table[s]: this dataset)

gen ffmasspc_I=100*(ffmass_I/weight) if weight~=. & ffmass_I~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_I fatmasspc_I ffmass_I ffmasspc_I {
	replace `var'=. if dropped_I==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V27" name="ffmasspc_R" files="F1" dcml="0" intrvl="contin">
      <location StartPos="280" EndPos="295" width="16" RecSegNo="1"/>
      <labl>
        Fat-free mass % (value calculated using resistance) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="50.7818031311035" max="95.2838363647461"/>
      </valrng>
      <sumStat type="vald">
        363
      </sumStat>
      <sumStat type="invd">
        3064
      </sumStat>
      <txt>
        Fat-free mass % (value calculated using resistance)
      </txt>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: ffmass_R (table[s]: this dataset)
variable: dropped_R (table[s]: this dataset)

gen ffmasspc_R=100*(ffmass_R/weight) if weight~=. & ffmass_R~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_R fatmasspc_R ffmass_R ffmasspc_R {
	replace `var'=. if dropped_R==1
	}]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V28" name="dropped_M" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="296" EndPos="296" width="1" RecSegNo="1"/>
      <labl>
        Values from machine dropped due to inconsitency (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="1" max="1"/>
      </valrng>
      <sumStat type="vald">
        57
      </sumStat>
      <sumStat type="invd">
        3370
      </sumStat>
      <txt>
        Values from machine dropped due to inconsitency
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <catStat type="freq">
          57
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3370
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: weight (table[s]: this dataset)
variable: fatmass_M (table[s]: this dataset)
variable: ffmass_M (table[s]: this dataset)
gen dropped_M=1 if abs(weight-(fatmass_M+ ffmass_M))>2 & weight~=. & fatmass_M~=. & ffmass_M~=.]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V29" name="dropped_I" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="297" EndPos="297" width="1" RecSegNo="1"/>
      <labl>
        Values calculated using impedance dropped due to inconsitency (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="1" max="1"/>
      </valrng>
      <sumStat type="vald">
        356
      </sumStat>
      <sumStat type="invd">
        3071
      </sumStat>
      <txt>
        Values calculated using impedance dropped due to inconsitency
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <catStat type="freq">
          356
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3071
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: sex (table[s]: this dataset)
variable: fatmass_I (table[s]: this dataset)
gen dropped_I=1 if (fatmass_I<2 & sex==0) | (fatmass_I<10 & sex==1)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V30" name="dropped_R" files="F1" dcml="0" intrvl="discrete">
      <location StartPos="298" EndPos="298" width="1" RecSegNo="1"/>
      <labl>
        Values calculated using resistance dropped due to inconsitency (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="1" max="1"/>
      </valrng>
      <sumStat type="vald">
        184
      </sumStat>
      <sumStat type="invd">
        3243
      </sumStat>
      <txt>
        Values calculated using resistance dropped due to inconsitency
      </txt>
      <catgry>
        <catValu>
          1
        </catValu>
        <catStat type="freq">
          184
        </catStat>
      </catgry>
      <catgry missing="Y">
        <catValu>
          Sysmiss
        </catValu>
        <catStat type="freq">
          3243
        </catStat>
      </catgry>
      <codInstr>
        <![CDATA[variable: sex (table[s]: this dataset)
variable: fatmass_R (table[s]: this dataset)

gen dropped_R=1 if (fatmass_R<2 & sex==0) | (fatmass_R<10 & sex==1)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V31" name="hg_left" files="F1" dcml="0" intrvl="contin">
      <location StartPos="299" EndPos="314" width="16" RecSegNo="1"/>
      <labl>
        Hand grip (left) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="7.26666688919067" max="72.6666641235352"/>
      </valrng>
      <sumStat type="vald">
        996
      </sumStat>
      <sumStat type="invd">
        2431
      </sumStat>
      <txt>
        Hand grip (left)
      </txt>
      <codInstr>
        <![CDATA[variable: grip_left_1_gs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: grip_left_2_gs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: grip_left_3_gs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: grip_left1 (table[s]: gap_combined)
variable: grip_left2 (table[s]: gap_combined)
variable: grip_left3 (table[s]: gap_combined)

<NUT data:>
egen hg_left=rowmean(grip_left_1_gs grip_left_2_gs grip_left_3_gs)
<GAP data:>
egen hg_left=rowmean(grip_left1 grip_left2 grip_left3)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V32" name="hg_right" files="F1" dcml="0" intrvl="contin">
      <location StartPos="315" EndPos="330" width="16" RecSegNo="1"/>
      <labl>
        Hand grip (right) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="6.13333320617676" max="70"/>
      </valrng>
      <sumStat type="vald">
        997
      </sumStat>
      <sumStat type="invd">
        2430
      </sumStat>
      <txt>
        Hand grip (right)
      </txt>
      <codInstr>
        <![CDATA[variable: grip_right_1_gs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: grip_right_2_gs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: grip_right_3_gs (table[s]: NUTdata_KAR, NUTdata_LLW)
variable: grip_right1 (table[s]: gap_combined)
variable: grip_right2 (table[s]: gap_combined)
variable: grip_right3 (table[s]: gap_combined)

<NUT data:>
egen hg_right=rowmean(grip_right_1_gs grip_right_2_gs grip_right_3_gs)
<GAP data:>
egen hg_right=rowmean(grip_right1 grip_right2 grip_right3)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
    </var>
    <var ID="V33" name="hgs" files="F1" dcml="0" intrvl="contin">
      <location StartPos="331" EndPos="346" width="16" RecSegNo="1"/>
      <labl>
        Hand grip (average of left and right) (D)
      </labl>
      <valrng>
        <range UNITS="REAL" min="6.13333320617676" max="71.3333282470703"/>
      </valrng>
      <sumStat type="vald">
        1258
      </sumStat>
      <sumStat type="invd">
        2169
      </sumStat>
      <txt>
        Hand grip (average of left and right)
      </txt>
      <codInstr>
        <![CDATA[variable: hgs (table[s]: phdk_hsbc, phdl_hsbc)
variable: hg_left (table[s]: this dataset)
variable: hg_right (table[s]: this dataset)

<NUT & GAP data:>
egen hgs=rowmean(hg_left hg_right)]]>
      </codInstr>
      <varFormat type="numeric" schema="other"/>
      <notes>
        Available in versions -, 1
      </notes>
    </var>
  </dataDscr>
</codeBook>
