JMM Minicourse (Jan 2018)

A note about these slides

The support for documentation creation in RStudio is great.

  • These slides are HTML, but I created them in RMarkdown (+ a little bit of HTML fiddling)

  • A single RMarkdown file can generate PDF, HTML, or Word

  • No need to know HTML, LateX or Word

  • But if you do, you can take advantage

Less Volume, More Creativity

Less Volume, More Creativity

Mike McCarthy

Head coach, Green Bay Packers (NFL Football)

  • Packers subscribe to "draft and develop"
  • Among the youngest teams in the league every year
  • Coaching staff constantly teaching young players

Mike McCarthy

Head coach, Green Bay Packers (NFL Football)

  • Packers subscribe to "draft and develop"
  • Among the youngest teams in the league every year
  • Coaching staff constantly teaching young players

Joe from Fitchburg, WI:

Do you have a favorite Mike McCarthy quote?

Mike McCarthy

Head coach, Green Bay Packers (NFL Football)

  • Packers subscribe to "draft and develop"
  • Among the youngest teams in the league every year
  • Coaching staff constantly teaching young players

Joe from Fitchburg, WI:

Do you have a favorite Mike McCarthy quote? Mine is "statistics are for losers".

Mike McCarthy

Head coach, Green Bay Packers (NFL Football)

  • Packers subscribe to "draft and develop"
  • Among the youngest teams in the league every year
  • Coaching staff constantly teaching young players

Joe from Fitchburg, WI:

Do you have a favorite Mike McCarthy quote? Mine is "statistics are for losers".

Vic Ketchman (packers.com):

"Less volume, more creativity."

Source: Ask Vic @ packers.com

More Mike McCarthy Quotes

You’ve got to watch that you don’t do too much. We have a philosophy on our coaching staff about less volume, more creativity.

A lot of times you end up putting in a lot more volume, because you are teaching fundamentals and you are teaching concepts that you need to put in, but you may not necessarily use because they are building blocks for other concepts and variations that will come off of that … In the offseason you have a chance to take a step back and tailor it more specifically towards your team and towards your players."

More Mike McCarthy Quotes

Q. (for McCarthy) How many offensive and defensive plays might you have coming into a game on average?

A. That's an excellent question because years ago when I first got into the NFL we had 150 passes in our game plan. I've put a sign on all of the coordinators' doors - less volume, more creativity. We function with more concepts with less volume. We're more around 50 (passes) into a game plan.

Source: http://www.jsonline.com/packerinsider/106968233.html (Nov 10, 2010)

The Minimal R Exercise

List every R command used throughout a course/project

Organize by syntactic similarity and by purpose

Scratch everything you could have done without

Replace dissimilar tools with more similar tools

Aim for a set of commands that is

  • small: fewer is better
  • coherent: commands should be as similar as possible
  • powerful: can do what needs doing

Result: Minimal R for Intro Stats

Less Volume, More Creativity

It is not enough to use R, it must be used efficiently and elegantly because human brain power is the most limited resource most of our projects have.

Less Volume, More Creativity

Some propopsed solutions

  • mosaic and ggformula – making the most of formulas

  • tidyverse – grammar of data transformation

  • R Markdown – document creation for humans who use R

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

— Antoine de Saint-Exupery (writer, poet, pioneering aviator)

Choose Wisely

R's biggest strength is also its biggest weakness: A large, active user base that provides packages for the community to use.

  • quality varies from pacakge to package, so does style
  • new things keep coming (so you need to revisit your choices)

If you are new to R, you will learn faster and be happier if you can learn a few flexible tools very well than if you run with the first thing you google that gets today's job done.

If you are teaching, your students will become more proficient more quickly (and with less stress) if you follow a Less Volume, More Creatiity approach.

Outline of the minicourse

  • The formula template: using ggformula and mosaic

    • and a few bonus features thrown in for good measure
  • An introduction to RStudio (via R Studio server)

  • R Markdown: an intelligent way to create documents with text and R

    • Note: if you know LaTeX, there is a LaTeX based version of this as well
  • (Data Wrangling in the tidyverse)

Be sure to interrupt with questions along the way.