MyNixOS website logo
Description

Datasets for 'Statistics: Unlocking the Power of Data'.

Data sets and other utilities for 'Statistics: Unlocking the Power of Data' by Lock, Lock, Lock, Lock and Lock (ISBN : 978-0-470-60187-7, http://lock5stat.com/).

CRAN_Status_Badge Travis-CI Build Status

Lock5withR

This R Companion to Statistics: Unlocking the Power of Data by Lock, Lock, Lock, Lock, and Lock provides

  • a companion text
  • an R package (Lock5withR)

Companion Text

  • Lock5 with R, a companion to Statistics: Unlocking the Power of Data is available as a PDF
  • The authors are Randall Pruim and Lana Park.

R Package

The Lock5withR package can be installed from github using

devtools::install_github("rpruim/Lock5withR")

This package contains all of the data sets used in the package and the locket() function which can be used to run any of 417 code chunks from the campanion.

For example:

require(Lock5withR)
require(mosaic)
locket("Example2.11")
#> 
#> 
#> 	locket(Example2.11)
#> 	------ ~~~~~~~~~~~
#> 
#> > ICU20 <- subset(ICUAdmissions, Age == "20")
#> 
#> > mean( ~ HeartRate, data = ICU20)
#> [1] 82.2
#> 
#> > median( ~ HeartRate, data = ICU20)
#> [1] 80
#> 
#> > ICU55 = subset(ICUAdmissions, Age == "55")
#> 
#> > mean( ~ HeartRate, data = ICU55)
#> [1] 108.5
#> 
#> > median( ~ HeartRate, data = ICU55)
#> [1] 106

Relationship to Lock5Data

The Locks have created an R package called Lock5Data that contains the data sets from their text. Some of these data sets have been modified in Lock5withR to make them easier to use with R. Modified data sets include the following:

AllCountries    BikeCommute      BodyTemp50       CaffeineTaps 
CarbonDioxide   CO2              EmployedACS      Flight179 
GPAGender       ICUAdmissions    MiamiHeat        MindsetMatters 
NFLScores2011   NutritionStudy   RestaurantTips   RetailSales 
SalaryGender    SampCountries    SandP500         SleepStudy 
SpeedDating     StudentSurvey    USStates         WaterTaste 
Wetsuits

Typically changes involved the inclusion of additional variables with better encodings. Somtimes variables are replaced. In the case of CO2 the data set has been renamed AtmosphericCO2 to avoid a name collision with a data set in the datasets package.

The locket() function is only available in Lock5withR.

Metadata

Version

1.2.2

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows