Skip to main content
100%

Fork of life expectancy estimates

✓ Published0🌍 Public
KKhatera Alizada
Last edited Jan 22, 2023
Created on Jan 19, 2023
Forked from Loading Data

This visualization presents life expectancy estimates by gender, income percentile, and year using data from Health Inequality. It displays the dataset in a raw JSON format after fetching and parsing a CSV file from a GitHub gist. The code uses `d3.csvParse` to load and convert the data, coercing fields like `pctile`, `year`, and `le_agg` into numeric types. The current implementation only renders the parsed data structure, showing how the gender and percentile breakdowns vary across time.

AI-generated description

Online Data Table 2 National by-year life expectancy estimates for men and women, by income percentile. This table reports life expectancy estimates for men and women at age 40 for each percentile of the national income distribution separately by year.

column Name: column Description, type

  1. gnd: Gender (male/female), categorical
  2. pctile: Household Income Percentile, quantitative
  3. year: Year, quantitative
  4. count: Count, quantitative
  5. hh_inc: Mean Household Income, quantitative
  6. le_raceadj: Race-Adjusted Life Expectancy, quantitative
  7. le_agg: Unadjusted Life Expectancy, quantitative
  8. sd_le_raceadj: Standard Error of Race-Adjusted Life Expectancy, quantitative
  9. sd_le_agg: Standard Error of Unadjusted Life Expectancy, quantitative

Questions:

  1. How did life expectancy of females change over time?
  2. How did life expectancy of males change over time?
  3. What is the difference in life expectancy by mean household income?
  4. How does females life expectancy differ by mean household income?
  5. How does males life expectancy differ by mean household income?

Link: https://healthinequality.org/data/

MIT Licensed

Similar vizzes