DHS 世纪-月份编码

可用数据:调查数据

期望得到的数据:通用材料

方法:直接方法

世纪-月份代码(Century-Month Code,CMC)系统为处理按月份和年份编码的数据提供了一种简便方法,也是人口与健康调查(Demographic and Health Surveys,DHS)中日期编码的主要方式。关于该系统的较好说明可参见《DHS 统计指南》(Rutstein 和 Rojas,2003)。CMC 将所有月份转换为一个代码:1900 年 1 月取值为 1,1900 年 2 月取值为 2,1901 年 1 月取值为 13,依此类推。月份和年份转换为 CMC 的方法如下:

\[ \mathrm{CMC}(\mathrm{month}, \mathrm{year}) = 12(\mathrm{year}-1900)+\mathrm{month} \]

同样的,如果要反过来转换的话

\[ \mathrm{Year}=1900+\operatorname{int}\left(\frac{\mathrm{CMC}-1}{12}\right) \]

以及

\[ \mathrm{Month}=\mathrm{CMC}-12(\mathrm{Year}-1900) \]

因此,2011 年 2 月的 CMC 为 12*(2011 - 1900) + 2 = 1333;而与 CMC 值 1267 对应的年份为 year = 1900 + int(1266/12) = 2005,月份为 7 月(7),即 2005 年 7 月。

参考文献

Rutstein, Shea and Guillermo Rojas. 2006. Guide to DHS Statistics. Calverton, MD: ORC Macro. https://www.dhsprogram.com/pubs/pdf/DHSG1/Guide_to_DHS_Statistics_29Oct2012_DHSG1.pdf

原文作者
汤姆·A·莫尔特里
Suggested citation

Moultrie TA. 2011. DHS Century-Month Codes. In Moultrie TA, Dorrington RE, Hill AG, Hill K, Timæus IM and Zaba B (eds). Tools for Demographic Estimation. Paris: International Union for the Scientific Study of Population. https://demographicestimation.iussp.org/content/dhs-century-month-codes.