Elementary Statistics With R

Rebekah Robinson and Homer White, Georgetown College

Our Intended Audience

Instructors with

  • some user experience with R
  • who have studied the Project Mosaic approach to teaching elementary statistics with R

Useful eCOTS 2014 sessions:

install.packages("mosaic")

mosaic/tigerstats approach

Gentle down the coding!

  • minimize number of functions to know
  • provide uniform user interface for those functions
  • don't force students to write their own functions
  • pay little attention to types of R objects
  • avoid teaching flow-control structures

The Tigerstats Package

install.packages("devtools")
library(devtools)
install_github(repo="tigerstats",
          username="homerhanumat")
  • Used alongside of package mosaic
  • Customize output to GC course objectives
  • Alternative function help (Course Notes, blog posts)
  • Simulation with manipulate/Shiny apps
  • tigerstats source code is here.

Some Tigerstats Features

Uniform function template for both descriptive and inferential procedures:

\[ procedure(Formula,data=Mydata,\ldots) \]

Formulas are of four types, based on nature of variables in one's “Research Question.”

Output is customized to GC course objectives. Paradigmatic examples:

Course Materials

Apps

RStudio's manipulate package enables interactivity in the Plots pane. (More info here.)

  • Can be programmed to work with arbitrary datasets;
CIMean(~height,data=imagpop)

The shiny package produces web applications. (More info here.)

  • More flexible user interface;
  • Permits detailed explanation of learning activity;
  • A bit more cumbersome for user to load datasets.

Shiny Access Options

require(shiny)
runGitHub(repo="tigerstats",
    username="homerhanumat",
    subdir="inst/FindRegLine")
  • (with shiny) run locally from installed package:
runApp(system.file("SlowGoodness",
        package="tigerstats"))

Concluding Remarks

Further Resources:

Remember:

  • You don't need to use our package: modify, and make your own!
  • tigerstats = training wheels; students who move on in statistics should learn standard R functions