{
  "alt": "Scatter plot of net adjusted gross income per resident against county home value on a logarithmic axis, one dot per county sized by population. Dots form a wide horizontal cloud around zero. Ten markers for tenths of counties start below zero at the left, move around zero through the middle tenths, peak in the ninth tenth and fall below zero at the right. Only the leftmost marker has an interval entirely below zero.",
  "caption": "Only the marker for the lowest tenth of counties by home value has an interval entirely below zero. The highest tenth is negative and the ninth positive in their point estimates, and both intervals include zero. Dots are counties sized by population; the markers pool the counties of each tenth, with 95% intervals from a bootstrap over states. {fact:n_out_hv} counties fall outside the plotted range.",
  "data": [],
  "id": "migration_vs_home_value",
  "notes": [
    "The county home value is the mean of the ACS 2019-2023 median home values of the county's tracts, weighted by tract population, so it is a mean of medians and not the median of the county's homes. Connecticut tracts are assigned to the legacy counties. The Census Bureau top-codes tract medians, and a tract at the top code enters at that value.",
    "The correlation counts each county in proportion to its population, and its interval includes zero. Counting each county once, it is {fact:r_hv_unw}, with an interval above zero. Both use {fact:hv_n} counties.",
    "Tenths hold equal numbers of counties, and each marker pools the counties of a tenth, so large counties count more. Intervals resample states."
  ],
  "source": "IRS Statistics of Income county migration data, filing years 2022 and 2023, ACS 2019-2023 population and tract median home values; population-weighted, full counts of returns",
  "spec": {
    "label": "name",
    "overlays": [
      {
        "hi": "hi",
        "kind": "line",
        "label": "Tenths of counties, pooled, with 95% intervals",
        "lo": "lo",
        "rows": [
          {
            "hi": -69.7,
            "lo": -141.8,
            "n_units": 308,
            "x": 92590,
            "y": -108.6
          },
          {
            "hi": 6.1,
            "lo": -64.9,
            "n_units": 308,
            "x": 116515,
            "y": -31.8
          },
          {
            "hi": 56.6,
            "lo": -41.6,
            "n_units": 309,
            "x": 133932,
            "y": 3.6
          },
          {
            "hi": 63.7,
            "lo": -63.9,
            "n_units": 308,
            "x": 149166,
            "y": -2
          },
          {
            "hi": 57.8,
            "lo": -73.9,
            "n_units": 309,
            "x": 166778,
            "y": -9.7
          },
          {
            "hi": 59.4,
            "lo": -135.1,
            "n_units": 308,
            "x": 186609,
            "y": -52.7
          },
          {
            "hi": 158.5,
            "lo": -52.8,
            "n_units": 308,
            "x": 214913,
            "y": 46.8
          },
          {
            "hi": 280.1,
            "lo": -77,
            "n_units": 309,
            "x": 255039,
            "y": 97.7
          },
          {
            "hi": 381.9,
            "lo": -128.8,
            "n_units": 308,
            "x": 312701,
            "y": 103.4
          },
          {
            "hi": 238.2,
            "lo": -298.3,
            "n_units": 309,
            "x": 463335,
            "y": -102.6
          }
        ],
        "x": "x",
        "y": "y"
      }
    ],
    "payload": "migration_vs_home_value.json",
    "size": "pop",
    "sizeLabel": "Population, ACS 2019-2023",
    "x": "hv",
    "xDomain": [
      40000,
      1200000
    ],
    "xFormat": {
      "digits": 0,
      "prefix": "$",
      "thousands": true
    },
    "xLabel": "County home value, mean of ACS tract medians (dollars, log scale)",
    "xScale": "log",
    "y": "agipc",
    "yDomain": [
      -2500,
      6000
    ],
    "yFormat": {
      "digits": 0,
      "thousands": true
    },
    "yLabel": "Net adjusted gross income per resident (dollars)"
  },
  "subtitle": "Net adjusted gross income per resident in dollars against county home value in dollars (log scale), one dot per county sized by population, with pooled means for tenths of counties",
  "title": "Net income per resident does not fall steadily with county home value, with a population-weighted correlation of {fact:r_hv} and {fact:r_hv_unw} when each county counts once",
  "type": "scatter",
  "width": "wide"
}
