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

Not long ago, we received an interesting request from one of our longtime readers:

Could you do an article and specifically a graphic that would show what the US economy would look like in GDP terms without the Federal, State and Local governments? Say from 1970 to present? It would be informative to see the GDP growth less government spending.

We'll go a step further, because the U.S. Bureau of Economic Analysis makes most of this data available on a quarterly basis going back to 1947. In our first chart below, we'll track the evolution of nominal GDP from 1947-Q1 through 2016-Q1, in which we can extract both the contributions of the federal government and also of state and local governments.

Because the U.S.' Gross Domestic Product has typically grown at exponential rates over time, we'll also visually present this same nominal data on a logarithmic scale, which indicates equal amounts of percentage change, as opposed to the more common linear scale, which indicates equal units of numerical change.

The two charts above represent the nominal GDP for the U.S., which is to say the Gross Domestic Product that was measured in the terms of the actual prices in U.S. dollars that people and businesses actually paid for goods and services in the periods where the data was recorded.

But whenever we present nominal data like this, we also invariably get requests to adjust the values to account for the effects of inflation over time.

And once we do select the type of inflation to adjust for, we still need to select which year's U.S. dollars to reference all the calculations to. Should we use 2016? How about 2000? Or perhaps the bicentennial year of 1976? Maybe we should go back to the beginning of the quarterly GDP data series and use 1947? It seems that no matter which time period we might select, it will invariably be out of date, or soon will be, especially for people who are always most familiar with buying and selling things priced in terms of current day nominal U.S. dollars!

If these considerations sound somewhat complicated, it is because selecting an appropriate measure of inflation for which to adjust nominal price data can be challenging, where you can get quite different results from using different measures. As economic historians, these considerations are why we strongly recommend that regardless of which inflation measure you might choose to adjust nominal data, it is essential to *always* reference nominal data sources because they are not subject to what may be arbitrary choices on the part of the analyst doing the calculations.

Nominal price data has the singular benefit of never changing while also representing the documented costs that real people participating in the economy at the time in a given period of interest would have paid, and as such, will be the only form of such price data that can be confirmed or validated using contemporary accounts and other historic references, which is essential for appreciating the true context in which their participation in the economy occurred. Believe it or not, there are economics professors at major universities who don't themselves have a firm grasp of these kinds of considerations, but whose students have never-the-less benefited from their having incorporated our comments on this specific topic into their presentations.

In this case, we'll default our presentation to match the choice of the data jocks at the U.S. Bureau of Economic Analysis, who are using the GDP implicit price deflator as expressed in terms of chained 2009 U.S. dollars. If you'd like to see this data presented to be adjusted to be in terms of some other inflation measure, we've linked to the source of the nominal data below, and you should find the math of doing the inflation adjustment yourself to be super easy, even if the choice of which inflation measure to use may not be quite so simple. Our chart showing the Real GDP of the U.S. economy, with and without the contribution of the U.S. government as well as state and local governments, on a linear scale is below.

In the chart above, since the BEA only provides detailed Real GDP data on the contributions of the U.S. Federal Government and State & Local Governments back to 1999-Q1, we only show their individual contributions back to that quarter. The BEA does however provide data on the combined contribution of all governments in the U.S. back to 1947-Q1, so we can get a good idea of the private sector's GDP output back to that time.

We'll wrap up this post with the same inflation-adjusted data presented on a logarithmic scale.

In the course of putting these charts together, we did find something else interesting in the data, which we'll follow up with in the very near future!

Update 25 July 2016: Our discussion of the BEA's real, or inflation-adjusted data above should have carried the warning that their Chained Weighted constant dollar indexes are only truly additive in their base reference year, which means that the subcomponents of GDP will only add up to equal the total estimated real GDP value in that year. For the relevant charts presented above, that year is 2009.

Nominal GDP doesn't have that issue, which is another reason why nominal GDP data should always be referenced in this kind of presentation. If however you need a quick approximation of what real GDP would be with or without such a particular contribution from one of its components, then a simple subtraction method can get you in the right ballpark (say if you want to create a counterfactual that fits well within the statistical margin of error of a more precise calculation), but with the penalty of less accuracy as you get further and further away from the base reference year. As a general rule of thumb, if you stay within five years of the base reference year for that kind of application, you should be in good shape for that kind of back of the envelope calculation.

But what if you get far outside that range? In those cases, the errors can grow quite large, with the largest errors typically being the furthest away from the base reference year. The following chart shows that effect.

Unlike the author of this particular chart, we are quite happy to acknowledge whenever we have presented errors in our analysis, even minor screw ups like the one above! We would also like to thank the author for revealing, through their more precise approximation of the private sector contribution to real GDP, that the real economic growth of the private sector of the U.S. economy has been considerably more anemic in recent years than was indicated by our simple subtraction method-based approximation.

Data Source

U.S. Bureau of Economic Analysis. National Income and Product Accounts. Tables 1.1.5 and Table 1.1.6. [Online Database]. Last updated 28 June 2016. Accessed 12 July 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:

Materials on this website are published by Political Calculations to provide visitors with free information and insights regarding the incentives created by the laws and policies described. However, this website is not designed for the purpose of providing legal, medical or financial advice to individuals. Visitors should not rely upon information on this website as a substitute for personal legal, medical or financial advice. While we make every effort to provide accurate website information, laws can change and inaccuracies happen despite our best efforts. If you have an individual problem, you should seek advice from a licensed professional in your state, i.e., by a competent authority with specialized knowledge who can apply it to the particular circumstances of your case.