MEIRU Microdata Portal
  • Home
  • Overview
  • Microdata Catalog
  • Citations
  • Login
    Login
    Home / Central Data Catalog / DDI-MWI-MEIRU-SES-2007-V01B / variable [F1]
central

SES Combined socio-economic data

Malawi
Get Microdata
Reference ID
DDI-MWI-MEIRU-SES-2007-v01b
Collections
Combined / Harmonized Datasets Karonga HDSS
Metadata
Documentation in PDF DDI/XML JSON
Created on
Nov 14, 2025
Last modified
Nov 19, 2025
Page views
9766
Downloads
149
  • Study Description
  • Data Dictionary
  • Downloads
  • Get Microdata
  • Data files
  • combined_ses_hh
  • combined_ses_ind

Score of percentage of harvest sold by household (D) (harvsellscore)

Data file: combined_ses_hh

Overview

Valid: 22274
Invalid: 36985
Type: Discrete
Decimal: 0
Start: 79
End: 80
Width: 2
Range: 1 - 10
Format: Numeric

Description

Definition
Score of percentage of harvest sold by household

Imputation and derivation

Derivation
variable: maizesell (table[s]: css_seh)
variable: ricesell (table[s]: css_seh)
variable: gnutsell (table[s]: css_seh)
variable: harvesttot (table[s]: temporary derived variable)


<Cans of harvest sold is added together and then turned into a decile variable in relation to all other records with this data within the same year>
egen selltot=rowtotal(maizesell ricesell gnutsell)
replace selltot=. if maizesell==. & ricesell==. & gnutsell==.
replace selltot=harvesttot if selltot>harvesttot & selltot~=. & harvesttot~=. /*in a few case amount sold is greater than amount harvested*/
gen harvselltot=int(10*(selltot/harvesttot)) if harvesttot>0 & harvesttot~=. & selltot~=. & selltot<=harvesttotforeach var in plot harvest harvsell {
foreach y in `yearlist' { /*make relative score by year*/
cap xtile `var'scorey`y'=`var'tot if year==`y', nq(10) /*score is created by splitting the population into deciles*/
if _rc~=0 gen `var'scorey`y'=.
}
egen `var'score=rowmax(`var'scorey*)
drop `var'scorey*
}
Back to Catalog
MEIRU Microdata Portal

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