ABSTRACT

This introduction to R for students of psychology and health sciences aims to fast-track the reader through some of the most difficult aspects of learning to do data analysis and statistics. It demonstrates the benefits for reproducibility and reliability of using a programming language over commercial software packages such as SPSS. The early chapters build at a gentle pace, to give the reader confidence in moving from a point-and-click software environment, to the more robust and reliable world of statistical coding. This is a thoroughly modern and up-to-date approach using RStudio and the tidyverse. A range of R packages relevant to psychological research are discussed in detail. A great deal of research in the health sciences concerns questionnaire data, which may require recoding, aggregation and transformation before quantitative techniques and statistical analysis can be applied. R offers many useful and transparent functions to process data and check psychometric properties. These are illustrated in detail, along with a wide range of tools R affords for data visualisation. Many introductory statistics books for the health sciences rely on toy examples - in contrast, this book benefits from utilising open datasets from published psychological studies, to both motivate and demonstrate the transition from data manipulation and analysis to published report. R Markdown is becoming the preferred method for communicating in the open science community. This book also covers the detail of how to integrate the use of R Markdown documents into the research workflow and how to use these in preparing manuscripts for publication, adhering to the latest APA style guidelines.

chapter Chapter 1|11 pages

Introduction

chapter Chapter 2|9 pages

The R Environment

chapter Chapter 3|22 pages

The Basics

chapter Chapter 4|9 pages

Practices

chapter Chapter 5|17 pages

Dataset Excel

chapter Chapter 6|8 pages

Dataset csv

chapter Chapter 7|8 pages

Dataset SPSS

chapter Chapter 9|16 pages

Normality

chapter Chapter 10|8 pages

Outliers

chapter Chapter 11|8 pages

Descriptive Statistics

chapter Chapter 12|16 pages

Graphs with ggplot2

chapter Chapter 13|14 pages

Correlation—Bivariate

chapter Chapter 14|9 pages

Correlation—Partial

chapter Chapter 15|12 pages

One-Way ANOVA—Model Data

chapter Chapter 16|5 pages

One ANOVA—Real Data

chapter Chapter 17|12 pages

Factorial ANOVA

chapter Chapter 18|10 pages

Ancova

chapter Chapter 19|14 pages

Repeated Measures ANOVA

chapter Chapter 20|15 pages

Regression

chapter Chapter 21|12 pages

Non-parametric Tests

chapter Chapter 22|4 pages

Categorical Data Analysis

chapter Chapter 23|4 pages

What Else can R Do?

chapter Chapter 24|21 pages

Functions