Basic Statistics in R

© Prof. AJ Smit (Biodiversity & Conservation Biology Department, University of the Western Cape) and Dr. Robert Schlegel (Institut de la Mer de Villefranche, Sorbonne Université)

View the Project on GitHub ajsmit/R_Stats_Official

These notes are provided to students at the BioStatistics in R (BCB744) Workshop, held at The University of the Western Cape, 28 March - 1 April 2022.

Authors: Prof AJ Smit and Dr Robert Schlegel

“An approximate answer to the right problem is worth a good deal more than an exact answer to an approximate problem.”

— John Tukey

Wahlberg

Prerequisites

A prerequisite for this course is a basic proficiency in using R [\@R2017]. The necessary experience will have been gained from completing the Intro R Workshop: Data Manipulation, Analysis, and Graphing Workshop that was part of your BCB Core Honours module (i.e. Biostatistics). You will also need a laptop with R and RStudio installed as per the instructions provided in that workshop. If you do not have a personal laptop, most computers in the 5th floor lab will be correctly set up for this purpose.

References

R Core Team. 2017. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. Link.

Overview of Statistical Methods

You will encounter the following statistics in this module (in the process of being updated):

These links point to online resources such as datasets and R scripts in support of the lecture material. It is essential that you work through these examples and workflows.


Course Content

Day 1

Introduction | Data |Descriptive statistics | Graphics

Day 2

t-Tests | ANOVA | Regression

Day 3

Correlation | Confidence intervals | Assumptions