2024-02-04

Introduction

  • The NHANES (American National Health and Nutrition Examination surveys) dataset is collected by the US National Center for Health Statistics (NCHS). Since the early 1960s, NCHS has been conducting a sequence of health and nutrition surveys. Starting from 1999, around 5,000 individuals of various age groups are annually interviewed in their residences, participating in the health examination segment of the survey.I will be focusing on analyzing the relationship between body mass index (BMI) and blood pressure.

Data Exploration

Code to create a bar chart showing the BMI frequency in the data set on next slide:

suppressWarnings({ library(NHANES) library(ggplot2)

# Load NHANES dataset

data(NHANES)

# Explore BMI distribution

ggplot(NHANES, aes(x = BMI)) + geom_histogram(binwidth = 1, fill = “skyblue”, color = “black”) + labs(title = “Distribution of BMI in NHANES”, x = “BMI”, y = “Frequency”)

Graph of BMI Frequencies

## Warning: Removed 366 rows containing non-finite values (`stat_bin()`).

Plot BMI against Blood Pressure

## `geom_smooth()` using formula = 'y ~ x'

Create plotly plot

Understanding Blood Pressure

Let’s denote:

  • \(BP_{sys}\): Systolic Blood Pressure

  • \(BP_{dia}\): Diastolic Blood Pressure

The mean arterial pressure (MAP) is given by:

\[ MAP = \frac{{2 \cdot BP_{dia} + BP_{sys}}}{{3}} \]

Mathematical Relationship Between Blood Pressure and BMI

  • Systolic Blood Pressure: \[ BP_{sys} = \beta_0 + \beta_1 \times BMI + \epsilon \]

  • Diastolic Blood Pressure: \[ BP_{dia} = \gamma_0 + \gamma_1 \times BMI + \epsilon' \]

\(BP_{sys}\) and \(BP_{dia}\) are the systolic and diastolic blood pressures respectively. \(BMI\) is the Body Mass Index. \(\beta_0\) and \(\gamma_0\) are intercepts. \(\beta_1\) and \(\gamma_1\) are coefficients. \(\epsilon\) and \(\epsilon'\) are the error terms.

Summary of regression model

## 
## Call:
## lm(formula = BPSysAve ~ BMI, data = NHANES)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -49.492 -11.059  -2.480   8.159 108.283 
## 
## Coefficients:
##              Estimate Std. Error t value Pr(>|t|)    
## (Intercept) 100.36050    0.73395  136.74   <2e-16 ***
## BMI           0.64359    0.02576   24.98   <2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 16.61 on 8485 degrees of freedom
##   (1513 observations deleted due to missingness)
## Multiple R-squared:  0.06851,    Adjusted R-squared:  0.0684 
## F-statistic: 624.1 on 1 and 8485 DF,  p-value: < 2.2e-16