From the earliest days of our marriage, my wife and I talked about baby names. Your name is a core part of your identity, so choosing the right name for your child feels like a weighty affair. Now, with a baby on the way, the topic surfaces in conversation more than ever.
Like always, I turned to data to assist with the decision process. Using a dataset provided by the Social Security Administration, I created functions with R to visualize and compare the popularity of names over time.
There are two functions: the comparison of two names over time and the comparison of a name against a birth year over time. Below is sample implementation:
I first compared the popularity of the spelling of my name, Erik, to the more common spelling, Eric.
Erik has never been as popular as Eric, although both are currently down from their 1970 – 1990 peak.
Next, I compared the popularity of my name in the context of my birth year. It looks like my parents named me around the start of the decline in popularity.
How does my name compare with my wife’s?
What can I say? She’s always been more popular. What about the names of my six sisters? (including sisters-in-law).
Finally, let’s take a look at the most popular boy and girl names of 2017, Liam and Emma.