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:

The information provided on this Web site is not official U.S. Government information and
does not represent the views or positions of the U.S. Agency for International Development or the U.S. Government.