Hungarian version of FiveThirtyEight age estimator

[This article was first published on R – MYHAPPYDATA BLOG, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

I tried to reproduce the FiveThirtyEight age estimator with Hungarian data. The methodology is quite the same. Unfortunately there is no as accurate database as the US version use. In Hungary only the common top 100 names has been collected and published here. The biggest problem is that before 2000 only date ranges has been published so I assumed uniform distribution between that years. However I found an up-to-date life table thanks to WHO.

I tried to create something similar like this in R. I used Shiny and Plotly for the visualization. Here is the result of it:

The dark-grey line shows the number of birth of the selected name in each years, while the blue color area is the number of birth which was adjusted to the life table of Hungary. The vertical red line shows the median living year of birth of the selected name.

To leave a comment for the author, please follow the link and comment on their blog: R – MYHAPPYDATA BLOG.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)