This repository is to keep code and files needed to create the descriptive analysis of Sexual Behaviors in NYC and at the National level using NYC HANES and NHANES data.
All data files used in this analysis are publicly available.
NHANES From NHANES We will need the files for: demographic data, reproductive health, sexual health, and BMI.
-
NHANES data for 2011-2012 can be downloaded from https://wwwn.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?BeginYear=2011
-
NHANES data for 2013-2014 can be downloaded from https://wwwn.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?BeginYear=2013
NYCHANES
- NYC HANES for 2013-2014 can be downloaded from https://med.nyu.edu/departments-institutes/population-health/divisions-sections-centers/epidemiology/center-innovation-measuring-population-health/new-york-city-health-nutrition-examination-survey/datasets-resources
All analysis was conducted in STATA, graphs were made in R. The order to run the files is:
- These files restrict analysis to those who answered the ACASI portion of the questionnaire and those aged between 20-69.
- This code creates tabulations needed for graphs and sample sizes and puts results in an excel file.
- This code is to create tabulations included in Table 1 of the manuscript
- This code is to create the graphs included.
The outputs of the code used are as follows: