Sugar Correlation in Student Obesity

Github Link

This code analyzes meal evaluation data and BMI using R, calculating correlations, visualizing distributions with boxplots and word clouds, identifying high-risk students, and assessing program impact on snack/drink consumption with paired t-tests.

Purpose

Examine meal habits’ impact on BMI and program effectiveness.

Statistical Techniques:

  • Correlation analysis (Measures BMI-food relationships with Spearman)
  • Boxplots (Visualizes BMI distribution by grade; shows spread and outliers per age)
  • Subsetting (Identifies high-risk students; filters BMI >= 23)
  • Paired t-tests (Compares pre/post consumption; program’s effect)
  • Wordcloud (Displays snack frequency patterns)

    Output

    1. Correlation coefficients 1s
    2. BMI boxplots 2s
    3. word cloud. 3s