Skip to content

Commit

Permalink
Adds median retirement savings chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
dc0sic committed Sep 11, 2024
1 parent c3c9111 commit e07273c
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Analysis/Results/BabyBonds Atlanta.html

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Analysis/Results/BabyBonds Baltimore.html

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Analysis/Results/BabyBonds Boston.html

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions Analysis/Results/BabyBonds Cities.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -620,3 +620,35 @@ plot_by_scen(
```

## Median Per-Capita Retirement at 65 Savings by Race and Sex

```{r}
#| label: fig-med-retbal-by-race-sex-65
#| fig-cap: "Median Retirement Account Balance at 65 by Race and Sex"
df = microdf |>
filter(age==65) |>
select(raceeth, male, scenario, weight, retbal) |>
group_by(raceeth, male, scenario) |>
summarise(
retbal_avg = wtd.mean(retbal, weight),
retbal_med = wtd.quantile(retbal, weight, probs=.5)
) |>
ungroup() |>
recode_male() |>
recode_raceeth() |>
recode_scenario()
plot_by_scen(
df,
var=retbal_med,
var_lab="Retirement savings (1000s of $2023)",
class1=raceeth,
class1_lab="Race/ethnicity",
facet=~male,
scale=1e-3,
title="People age 65 born in 2024-2028",
dodgewidth=.5
)
```
18 changes: 18 additions & 0 deletions Analysis/Results/BabyBonds Oakland.html

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Analysis/Results/BabyBonds USA.html

Large diffs are not rendered by default.

0 comments on commit e07273c

Please sign in to comment.