May 2016:
March 2014:

Wednesday, August 28, 2019

Thank you, FRED

Lately, every time I do a graph at FRED, the title lines come out perfect. (Nothing gets cropped off.) Thank you!

Saturday, July 13, 2019

Following up: The 'oido' graph in Excel

My previous post here looked at the 'oido' scatterplot:

Graph #1: The 'oido' graph as a scatter plot

I was trying to update this graph from 2012:

Graph #2: http://research.stlouisfed.org/fred2/graph/?g=bLT from 2012

But the lines that connect the dots in the new graph are mostly vertical. In the old graph, they are not.

If I had put a straight-line trend on either graph, it would go from high on the left to low on the right.

To my way of thinking, if the dot-to-dot lines generally run in the same direction as the overall trend line, I'm happy with what I'm looking at. But if the dot-to-dots generally run in a different direction than the overall, then I have to think there's something fishy about the overall (as with the Phillips curve). So when I saw the discrepancy in dot-to-dot direction on the two graphs, it didn't sit right.

That was, what, two weeks ago. Well, this morning I woke up around three, as usual, had my coffee, and suddenly had an urge to see the 'oido' graph in Excel. Here:

Graph #3
I made the graph extra-tall so that "one percent" is about the same size in the Y direction as in the X. It just seems the right thing to do. But other than eliminating potential misconceptions, making the graph taller doesn't change anything.

As you can see on #3, the general direction of the lines is from high on the left to low on the right. Same as Graph #2, the old FRED graph. And definitely different from #1, the new FRED graph.

Graph #3 is drawn from the same data as Graph #1. Excel disagrees with FRED about what the dot-to-dot lines should look like.

Also, old FRED agrees with Excel, and disagrees with new FRED.

I am forced to conclude that the new FRED graph draws the dot-to-dot lines wrong.

Sunday, June 30, 2019

The "change the units" field has gone blank

I got confused looking at a graph I made at FRED. I think I found another glitch in their system. Could be me, though. Calls for another look.

This graph:
https://fred.stlouisfed.org/graph/?g=oidh

Let me reset the computer and start over.


Okay. At FRED. I create a new graph showing Real GDP, and set the units to Percent Change from Year Ago.

Then I add a second line to the graph, showing TCMDO debt. The units come up as Percent Change from Year Ago (matching the previous units setting that I made) and I change them to Billions of Dollars. When the graph changes, the debt numbers are so big that the Percent Change in Real GDP line disappears from view. As expected.

I add a second data series to the second line: nominal GDP in billions. I make the formula read a / b and apply it. Both lines are now visible again.

Using the field that is low on the EDIT LINE 2 form, I change the units to "Percent Change from Year Ago". The graph changes accordingly. Here's what I have on my screen:

(click the image to see an enlargement)

Okay. I close the EDIT LINE 2 window and click Share Links: Page Short URL to save my settings. This URL comes up:
https://fred.stlouisfed.org/graph/?g=oido
I bring up that link in a new Firefox tab, click EDIT GRAPH, and select the EDIT LINE 2 window. Here's how my screen looks now:

(ditto)
The graph appears to be unchanged. But the "change the units" field (below the formula field) has gone blank.


Earlier today when I created this graph the first time, I didn't discover the 'blank field' error until several steps later when my graph appeared to be incorrect.

It is possible that this "later" graph was not incorrect (I'm not sure yet), and the blank field error only affects the screen display of the EDIT LINE form. I didn't check this. But I think the problem is more severe, and the blank field error is compounded when the Page Short URL graph is used as the basis for another graph.

Here: I take the oido graph above, the Page Short URL link graph, and change the Graph Type from line to scatter. I make the circle marks smaller and the line width thicker. Here's what I get:

The 'oido' graph as a scatter plot
Apart from the first half dozen values, the lines that connect the dots strike me as mostly vertical. I can see that the thing gradually works itself over to the right. But most of the short-term changes appear to be vertical (or mostly vertical).

Here's the old graph I was trying to duplicate:

http://research.stlouisfed.org/fred2/graph/?g=bLT from 2012
Here the lines definitely do not strike me as vertical.

The difference between these two graphs is probably my doing, not a result of the blank-field glitch. I dunno. It usually takes me a couple days to see why there's a problem.

Yeah no, even when I change the modified oido to annual frequency, it looks nothing like the graph from 2012.

Now you know everything I know.

Monday, June 24, 2019

Son of a bitch!

Finished up the previous post and went back to finishing a graph for the econ blog.

Two of the series begin in the 1940s, and the third in 1960. So I added a user-defined line to bring it back to the 1940s, made the line dashed, made the color match that third line, got the start- and end-values and dates right. Then I looked at it, decided I needed a bend in the middle of that line, added another user-defined line, and made everything match up nice. Then I took a picture:


Then I got the "Page short URL" for the graph, saved the link, and looked at the link version of the graph:

https://fred.stlouisfed.org/graph/?g=ofCm
The color, line type, and line width are all good. The start- and end-values (Y-axis values) look good. And I think the start-dates are correct; they look right. But the end-dates are wrong-wrong-wrong.

It's like a kick in the balls, you know?

On not setting the Formula

For the last month or so I've been quite happy with FRED. ("Quite" happy is as good as it gets, for me;) It looks like they actually fixed a bunch of the little things I complain about here on the blog. I can't take credit for any of the improvement. But I'm likin' what I see.

Thanks, guys, in case you read this.

I'm writing because I thought of a simple way to temporarily remove a line from a FRED graph: In the Formula line of the Edit Line window, just erase the formula, leave that field blank, and Apply the change. Only one thing wrong with my plan: It doesn't work. You get a "The formula is not set" error.

I think you could omit that error from the list of possible errors in the code, and compensate for that by adding code to "skip" the line if the Formula field is blank.

No doubt this is more complicated than I imagine, as there must be more to skip than just drawing the line on the graph. But I'd find this change useful once in a while.

Sunday, May 5, 2019

Comma-separated decimal places


I like the fact that I can read the whole calculation there in the upper border.
The comma-separated decimal places, that's cute!

Monday, January 21, 2019

Can't win


https://fred.stlouisfed.org/graph/?g=mJ5A: Household Debt Service and my calculation

If I narrow the graph at FRED, part of the upper-border text goes missing. That's unacceptable. So I left the thing the default width, made it taller, and saved the image, then shrunk the image down more than I normally do to fit my econ blog space. As a result, the text on this graph is smaller that usual and more difficult to read.