This repository contains code of various examples related to mortality and Bayesian models. It started out just US mortality examples but now is just a dumping ground for all sorts of stuff.
acsACS related, currently just atidycensusexamplebabynamesappcode for baby names shiny app: https://monica-alexander.shinyapps.io/babynames_app/birthweight_bayes_vizcode related to the Bayes Viz blog post.CA_county_examplecontains code to fit a subnational mortality model to estimate age-specific death rates in california over 1999-2016.letters: An E and H made with ggplot and generative art.lifspan_variationlooks at standard deviation in age at death across US stateslifetable_simcode for this Shiny app: https://monica-alexander.shinyapps.io/lifetable_sim/plot_tree.Rplots a year's worth of git commits in the shape of a Christmas tree.stata_labelsR code to parse Stata label definitionsus_hmd_exampleshows how you can plot highest and lowest life expectancy over time using data from the United States Mortality Database: https://usa.mortality.org/world_maternal_crvsnot state mortality at all, but a global map of the intersection of maternal mortality and CRVS data coverage