Skip to content

TonyBardo/CogHapLifeExp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Cognitively Intact & Happy Life Expectancy in the U.S.

Authors: Tony Bardo & Scott Lynch
Published in: The Journals of Gerontology: Psychological Sciences (2021) β€’ Link to Paper


🧠 Overview

This project examines the differences between cognitively intact life expectancy and happy life expectancy in the United States, showing that at ageβ€―65, happy life expectancy is ~25% longer and increasing to ~100% by ageβ€―85.


🎯 Objective

  • Compare how long older adults live cognitively intact vs happily.
  • Measure the gap and how it changes with age.
  • Highlight implications for public health, elder care, and policy-making.

πŸ“₯ Data


πŸ›  Analytical Workflow

  1. Data Cleaning & Prep

    • Loaded age-stratified life tables
    • Mapped cognitive and happiness categories
  2. Life-Expectancy Calculations

    • Calculated separate life expectancies using survival and health status data
  3. Comparative Analysis

    • Computed the absolute and relative difference in expectancy across age cohorts
  4. Visualization

    • Plotted expectancy curves (age 65 β†’ 90) with both cognitive and happiness lines

πŸ“Š Results

  • At ageβ€―65: Happy expectancy β‰ˆ 25% longer than cognitively intact expectancy
  • By ageβ€―85: absolute gap remains significant (~X years), underscoring policy concern
  • Visualized in figures/expectancy_gap.png for age-specific comparison

πŸ“‚ Repo Structure

. β”œβ”€β”€ data/ β”‚ └── clean_life_table.csv β”œβ”€β”€ analysis/ β”‚ β”œβ”€β”€ calc_expectancy.R β”‚ └── compare_expectancy.R β”œβ”€β”€ figures/ β”‚ └── expectancy_gap.png └── README.md

yaml Copy Edit


πŸ” Business Relevance

  • Demonstrates end-to-end data pipeline: cleaning, analysis, and visualization
  • Insights support evidence-based policy decisions in health and aging
  • Clear example of translating public data into actionable findings

🧩 Tools Used

  • R (data wrangling, life-table algorithms, plotting)
  • ggplot2 for visuals
  • [Tableau] (optional interactive dashboard)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published