mkbwang / ENAR-DataFest

DataFest 2024

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENAR DataFest 2024

The codes in this repository are owned by Mukai Wang (University of Michigan), Bulun Te (University of Michigan) and Sueny Paloma Lima (Ohio University). They contain the data cleaning, exploratory data analysis and mediation analysis of NHANES data for the ENAR 2024 DataFest. The project is titled "Mediation Analysis of Macronutrient Composition and Hypertension Among US Adults".

  • nutrient_matching.R: Retrieve the diet data from survey responses between 2011 and 2020 in NHANES and merge them with the hypertension diagnoses in cardioStatsUSA based on SEQN number.
  • subsample.R: Filter out survey respondents who were on special medication or diet. Calculate weights for individual responses based on covariate balancing propensity scores to balance the covariates between different survey periods (2011-2012, 2013-2014, 2015-2016, 2017-2020).
  • macronutrient_mediation.R: Mediation analysis with macronutrients as mediators. The mediators are isometric log transformation of six macronutrients (sugar, fiber, saturated fat, unsaturated fat, protein, alcohol).
  • Exploratory Data Analysis/: Codes for exploratory data analysis
  • Report.pdf: Submitted report PDF.

About

DataFest 2024


Languages

Language:R 100.0%