The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Nepal » Stat compiler result doesn't match with KR file for duration of breastfeed (Duration of breastfeeding for Nepal study)
Stat compiler result doesn't match with KR file for duration of breastfeed [message #16331] Thu, 13 December 2018 16:35
Muhammad Islam is currently offline  Muhammad Islam
Messages: 2
Registered: December 2018
Member
Hi,

I am trying to calculate the mean and median duration of breastfeeding by using the variable M5 for the year 2001, 2006, and 2011 for Nepal. However, the results are not matching with DHS Stat Compiler. here is the code for the year 2011 survey I am using as an example:

use "C:\NPKR60FL.dta", clear
gen sweight=v005/1000000

. summ m5 [aweight=sweight] if (m5<60),detail

months of breastfeeding
------------------------------------------------------------ -
Percentiles Smallest
1% 0 0
5% 2 0
10% 3 0 Obs 2,940
25% 8 0 Sum of Wgt. 2,974.7479

50% 17 Mean 19.53279
Largest Std. Dev. 13.49735
75% 29 58
90% 39 59 Variance 182.1784
95% 44 59 Skewness .5554638
99% 54 59 Kurtosis 2.516433


and the Stat compiler shows:
Median (33.7) and Mean(29.0)

I would really appreciate your response in this regard.

Thanks,
Muhammad
Previous Topic: Unmet Need and Demand Satisfied in 2006 Nepal DHS
Next Topic: education
Goto Forum:
  


Current Time: Thu Dec 12 13:03:40 Coordinated Universal Time 2024