## adventr: tutorials in R for An Adventure in Statistics (Field, 2016).

### Description

The adventr package contains a series of tutorials that accompany my books An Adventure in Statistics and Discovering statistics using R. These tutorials contain abridged sections from my books so there are some copyright considerations but I offer them under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. (Basically you can use them for teaching and non-profit activities but not meddle with them or claim them as your own work.)

### Who is the package aimed at?

Anyone teaching from or reading An Adventure in Statistics or Discovering statistics using R might find them useful.

### What is covered?

The tutorials do not teach the background theory (the books do): it is assumed you have either attended my lecture or read the relevant chapter in the aforementioned books (or someone else's) The aim of this tutorial is to augment the theory that you already know by guiding you through fitting linear models using R and RStudio and asking you questions to test your knowledge along the way.

### Running a tutorial

To run a tutorial execute:

learnr::run_tutorial("name_of_tutorial", package = "adventr")

replacing name_of_tutorial with the name of the tutorial (see below). For example, to run the tutorial on data basics execute:

learnr::run_tutorial("adventr_02", package = "adventr")

### A list of tutorials

• adventr_02: Data basics in R and RStudio. This tutorial looks at the basic concepts in R, such as installing packages, setting the working directory, getting help, getting data into R, creating variables, creating data frames and tibbles, reading in data files, manipulating variables within a tibble/data frame.

• adventr_03: Summarizing data (introducing ggplot2)

• adventr_04: Fitting models (central tendency)

• adventr_05: Presenting data (summarizing groups and more ggplot2)

• adventr_08: Inferential statistics and robust estimation (covers Chapter 9 too)

• adventr_14: The general linear model

• adventr_15_rm: Comparing two means (repeated measures)

• adventr_16_rm: Comparing several means (repeated measures)

• adventr_mlm: Multilevel models (not covered in the book)

• adventr_growth: Growth models (not covered in the book)

• adventr_log: Logistic regression (not covered in the book)

### References

• Field, A. P. (2016). An adventure in statistics: the reality enigma. London: Sage.

• Field, A. P., Miles, J. N. V., & Field, Z. C. (2012). Discovering statistics using R: And sex and drugs and rock 'n' roll. London: Sage.