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
How has the coronavirus lockdowns affected soda consumption?
With the onset of the coronavirus pandemic in March 2020, we set aside our project evaluating the ongoing impact of Philadelphia's controversial soda tax. But now, we can tap our established data sources and use the city's beverage tax collection data to see how the consumption of taxed beverages changed in Philadelphia in response to the lockdown measures state and local politicians imposed on its residents and businesses.
The following chart illustrates Philadelphia's monthly tax revenues from its soda tax and reveals what we found in comparing the period from January 2017 through February 2020 with the coronavirus lockdown recession period of March 2020 through December 2020.
Pennsylvania imposed its first statewide coronavirus lockdown on 17 March 2020. In the "before" period, the city of Philadelphia collected an average of $6,424,887 per month from its controversial soda tax.
But from March 2020 through December 2020, the city's monthly tax revenue from the Philadelphia Beverage tax dropped by 13.3% to an average of $5,570,658 per month.
This is where we decided to have some fun with a "what if" analysis. According to Harvard's soda tax advocates, a $0.01 per ounce tax increase on beverages would increase prices of taxed beverages by 16.3%, causing soda consumption to fall by 20%. The advocates believe the resulting reduction in soda consumption provides health benefits in the form of the reduced incidence of obesity and diabetes.
The 13.3% reduction in Philadelphia's soda tax collections represents the amount by which Pennsylvania's coronavirus lockdown restrictions have reduced soda consumption in the city. Going by the Harvard researchers' study, the coronavirus lockdown recession has provided the health benefits of the equivalent of an additional $0.00665 per ounce increase in the Philadelphia Beverage Tax, reducing the incidence of both obesity and diabetes in Philadelphia.
Does anyone really believe that happened in Philadelphia during the coronavirus pandemic?
City of Philadelphia. Department of Revenue. City Monthly Revenue Collections. [Online Database]. Accessed 19 March 2021.
Harvard T.H. Chan School of Public Health CHOICES (CHildhood Obesity Intervention Cost-Effectiveness Study) Project. Brief: Cost-Effectiveness of a Sugar-Sweetened Beverage Excise Tax in 15 U.S. Cities [PDF Document]. 12 December 2016.
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.