Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /home/public/profiles/acquia/modules/mollom/mollom.module on line 1444

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/public/modules/security_review/security_review.module on line 415
Blog: 29 May 2012 | Design and Analytics

Blog: 29 May 2012

Recession Beard? Time Series in R (Part II)

In Part I, we showed how to plot a time series of the change in American beards over time, using a dataset from Robert Hyndman's time series data library.  Today, we're going to look at whether the dramatic changes in American male beardfulness seem related to the economy.  Did Americans grow recession beards in response to the Panic of 1873?  Out of work, did they forgo their frequent trips to the barber (since Gillette didn't invent the personal safety razor until 1904 so they could do it themselves)?  Did they go on their job interviews with a face full of mutton chops and just never get called back (by telegram)?

What you'll learn

  • How to apply recession shading, according to the NBER's recession dates, to a time series---easily.
  • How to change the color of the recession shading
  • Whether 19th century gentlemen grew recession beards after losing their jobs in algo trading, you know, just taking some time off to study graphic design for a little bit.
Subscribe to Blog: 29 May 2012