Skip to main content

Preface Using Technology with This Book

This interactive textbook provides multiple ways to work with data and statistical software:

Interactive Applets.

Many investigations in this book include interactive applets created with JavaScript. These applets allow you to explore statistical concepts dynamically within the context of the investigation. These applets are designed to help you visualize data, understand distributions, and see the effects of changing parameters in statistical models.
We have embedded most of the applets directly on the Runestone pages and they should run across all platforms and browsers. In many cases, you may want to open the applet in a separate tab or window so you can toggle between the instructions and the applet, and so you can see the full width of the applet all at once.

Interactive R Cells (Sage).

Throughout the book, you’ll find interactive R code cells powered by SageMath. These allow you to run R code directly in your browser without installing any software. Each cell is self-contained and runs independently.
Important: Each Sage cell starts fresh - variables from one cell are not available in other cells. This is why you’ll see data creation code repeated in cells throughout an investigation.
Advantages:
  • No software installation required
  • Works on any device with a web browser, however Mac users may have additional error messages pop up. Closing those messages (perhaps pressing Evaluate (R) again) and even supressing them (e.g., Chrome) should allow the R code to render. You will probably also often see a message in the output starting with <rpy2> which can be safely ignored.
  • Great for quick explorations and learning concepts
Limitations:
  • Additional wrapper functions are used to load the ISCAM data files and applets. These are not required for using R with say RStudio. So if your goal is to become more proficient in R, you may want to copy and paste (and adjust) the commands into an R script.
  • Each cell runs independently (no persistent workspace)

Using RStudio.

Options:

Accessing Data Files.

Data files for this textbook are available at ISCAM Data Files.
You can access the ISCAM workspace functions used in this text by either:
  • Using load(url("http://www.rossmanchance.com/iscam4/ISCAMData.RData")) in R or RStudio
  • Installing the package: install.packages("ISCAM") and then use library(ISCAM)

Using JMP.

JMP is statistical software with a graphical interface that some students may prefer. Instructions for JMP are provided alongside R instructions in the Technology Detours. JMP is available through many educational institutions or as a free trial from JMP.com.
The ISCAM Journal File used in this text can be downloaded from here. You will want to right-click on this link to download (e.g., Download linked file as... ) the file (with the .jrn extension); then opening the file will launch JMP with easier access to some common functions used in this text.