[Manipulation, analysis, and visualization of data from the demographic and family health survey with the R program]

Rev Peru Med Exp Salud Publica. 2019 Jan-Mar;36(1):128-133. doi: 10.17843/rpmesp.2019.361.4062. Epub 2019 May 13.
[Article in Spanish]

Abstract

The Demographic and Family Health Survey (ENDES, in Spanish) is a national population-based survey with representation at the departmental level and area of residence, constituting a source of information on the health status of the Peruvian population. In order to standardize its processing and subsequent reuse by the academic community and other stakeholders, we documented the code for the manipulation, analysis, and visualization of data from the ENDES 2017 health questionnaire, through an example on the prevalence of hypertension and obesity, using the R statistical programming environment and language. The R code is presented and detailed sequentially, as well as the theoretical support of the survey structure for the manipulation of databases, considering that the complex structure of the ENDES could be a potential barrier faced by researchers. Finally, this example can serve as a basis for generating further studies based on the ENDES that are relevant to public health decision-making.

La Encuesta Demográfica de Salud Familiar (ENDES) es una encuesta nacional de base poblacional con representatividad a nivel departamental y área de residencia, constituyéndose en una fuente de información del estado de salud de la población peruana. Con el objetivo de estandarizar su procesamiento y posterior reutilización por parte de la comunidad académica y otros actores interesados; documentamos el código para la manipulación, análisis y visualización de datos del cuestionario de salud de la ENDES 2017, mediante un ejemplo sobre prevalencia de hipertensión arterial y obesidad, utilizando el entorno y lenguaje de programación estadístico R. Se presenta y detalla secuencialmente el código en R, así como, el sustento teórico de la estructura de la encuesta para la manipulación de las bases de datos, considerando que la compleja estructura de la ENDES podría ser una potencial barrera que enfrentan los investigadores. Finalmente, este ejemplo puede servir de base para que se generen mayores estudios basados en la ENDES que sean relevantes para la toma de decisiones en salud pública.

MeSH terms

  • Data Analysis*
  • Data Management / methods*
  • Data Visualization*
  • Database Management Systems
  • Family Health*
  • Health Surveys*
  • Humans