{
  "alt": "Two horizontal bars, each filled to the full width and divided into three segments for place, race and the race-by-place interaction. Place is the largest segment in both bars; the race segment is larger in the bar weighted by county population than in the unweighted bar.",
  "caption": "The place segment is the longest in both bars, and the race segment is shorter when each county counts once. Each bar splits the variance of life expectancy across county-by-race cells into the spread of county averages (place), the average white-Black gap (race) and the spread of the gap across counties (interaction).",
  "data": [
    {
      "ci_high": 58.45,
      "ci_low": 47.52,
      "component": "Place",
      "share": 52.97,
      "weighting": "Weighted by county population"
    },
    {
      "ci_high": 37.13,
      "ci_low": 25.7,
      "component": "Race",
      "share": 31.31,
      "weighting": "Weighted by county population"
    },
    {
      "ci_high": 18.84,
      "ci_low": 12.97,
      "component": "Race-by-place interaction",
      "share": 15.72,
      "weighting": "Weighted by county population"
    },
    {
      "ci_high": 66.47,
      "ci_low": 61.81,
      "component": "Place",
      "share": 64.14,
      "weighting": "Each county counted once"
    },
    {
      "ci_high": 21.73,
      "ci_low": 16.66,
      "component": "Race",
      "share": 19.09,
      "weighting": "Each county counted once"
    },
    {
      "ci_high": 18.63,
      "ci_low": 15.03,
      "component": "Race-by-place interaction",
      "share": 16.77,
      "weighting": "Each county counted once"
    }
  ],
  "id": "le_variance_race_place",
  "notes": [
    "Shares are exact for the county estimates in the file and sum to 100 in each bar. The 95% intervals in the table come from a bootstrap over counties.",
    "The estimates carry sampling noise that is largest in small counties; the noise sits inside the place and interaction shares and is not removed.",
    "Both groups of a county get the same weight, which keeps the split exact: the interaction equals the variance of the county gaps divided by four."
  ],
  "source": "County Health Rankings 2024 (NCHS deaths 2019-2021); full counts of deaths, weighted by county population in the first bar and unweighted in the second",
  "spec": {
    "category": "weighting",
    "colors": {
      "Place": "cat1",
      "Race": "cat2",
      "Race-by-place interaction": "cat3"
    },
    "format": {
      "digits": 0
    },
    "group": "component",
    "normalize": true,
    "orientation": "h",
    "sort": "data",
    "stack": true,
    "value": "share",
    "valueLabel": "Share of the variance (%)"
  },
  "subtitle": "Shares of the variance of county-by-race life expectancy (a non-Hispanic white and a non-Hispanic Black estimate for each county), percent, deaths in 2019 to 2021",
  "table": {
    "columns": [
      {
        "key": "weighting",
        "label": "Weighting"
      },
      {
        "key": "component",
        "label": "Component"
      },
      {
        "format": {
          "digits": 1
        },
        "key": "share",
        "label": "Share of variance (%)"
      },
      {
        "format": {
          "digits": 1
        },
        "key": "ci_low",
        "label": "Lower limit of the 95% interval"
      },
      {
        "format": {
          "digits": 1
        },
        "key": "ci_high",
        "label": "Upper limit of the 95% interval"
      }
    ]
  },
  "title": "Place accounts for {fact:pct_place} of the variance in county life expectancy by race, race for {fact:pct_race} and their interaction for {fact:pct_inter}",
  "type": "bar",
  "width": "body"
}
