to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
We have a project we're working on behind the scenes here at Political Calculations, where we keep having to work backward in time to figure out when an average American man or woman who has reached Age 65 in a given year was born, and then forward in time to project the year to which they can reasonably expect to live if they have the same average remaining life expectancy of a man or woman who reached Age 65 in the year that they did!
So rather than keeping doing the math, we've constructed a couple of visual aids to make it quicker to get our answers. First, we've tapped the U.S. Centers for Disease Control's data for remaining life expectancy for people who reached Age 65 in each year from 1950 through 2009:
And then, using that data, for the birth years that correspond to the year in which the American men or women turned 65, we worked out the year to which these individuals can reasonably expect to live given the CDC's remaining life expectancy estimates, which we've presented in our second chart below.
Well, not so fast. Since that data, while useful for our purposes, would make for a pretty uninteresting chart to share with all of you, we've added some extra information to it. We've identified the range of birth years that would correspond to the legal minimum (17) and maximum (45) ages of enlistment for military service in World War 2, along with a special range that corresponds to those who would have been 26 years old during the war - the average age of U.S. servicemen in the Second World War.
If you look closely, those aren't straight lines in the chart above - they actually curve upward ever so slightly!
The oldest living Congressional Medal of Honor winner from World War 2, Nicholas Oresko, just turned 96 years old on 18 January 2013, which puts his birth year of 1917 right in the middle of our highlighted "Age 26 during World War 2" range.
We note that the youngest legally-enlisted servicemen, those born in 1928 who would have been Age 17 in 1945, could reasonably have expected to live to 2008, given the average life expectancy for people born in that year who later turned Age 65 in 1993. By that standard, every veteran of WW2 alive today is someone who has lived longer than the average American born in the same year they were.
Here's hoping that all the remaining veterans of WWII continue to exceed the average American's lifespan expectations!
Labels: data visualization, demographics
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.