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've been playing with a new web-based data visualization tool from IBM this morning called Many Eyes, which is just too cool! How cool is it? Well, with a minimum of effort, we've whipped up a couple of charts based on the data we have for the relationship between total health care expenditures per capita and GDP per capita for each state in the U.S.!
The first chart we created this morning simply presents the total health expenditures per capita by state of residence for 2004 (Many Eyes also makes an interactive version of this map available).
We next crunched some numbers to determine how each state's total health expenditures per capita would fall with respect to the value we would predict based upon each's GDP per capita. The following chart presents our results as a percentage of the value we would expect given the actual GDP per capita of each using the refined relationship we presented last week (interactive version available here).
What we find is that three states are significantly skewed from what our relationship would predict. West Virginia has the most inflated health expenditures per capita at 198.9% of what we would predict based on the state's economic output per person. Mississippi ranked second at 182.2%, while Maine came in third at 160.3%.
That these three states also represent some of the poorest in the United States helps explain why. It's very likely that health expenditures in these states are boosted by a significant contribution by the U.S. federal government, well beyond the level that would be supported by each's economic output, for the purpose of "equalizing" them with other U.S. states. We can confirm this as the chart presenting the total health expenditures per capita (see above right) shows that each state's total health spending per capita is largely in line with many of their neighboring states.
It's likely a similar mechanism is at play for the next six states that fall well above what we would predict their level of health expenditures per capita would be based upon their GDP per capita. These states include Alabama, Arkansas, Kentucky, Montana, South Carolina and Vermont, which all range between 130 and 150% higher that the level we would anticipate. The District of Columbia would also fall in this range at 141.5% of the level of health expenditures per capita that we would anticipate, even given its outsize GDP.
The remaining 41 states would then all be within 30% of the level of total health expenditures per capita that we would predict based on the GDP per capita of each.
Labels: data visualization, health care
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.