Equivalence Of T Tests Anovas And Linear Models

Linear models in statistics are often taught as a series of separate tests to be run for data sets with different properties (e.g., categorical versus continuous independent variables). Here I generate a simulated data set, then use it to show...

Read More

Individual Based Models In R

Individual-based models (IBMs; also called `agent-based models’) model systems of discrete individuals in silico (i.e., in a computer simulation, developed by writing and running code). The idea is to represent individuals (often, but not always, biological organisms) as discrete entities...

Read More

Randomisation Methods In R

Here I introduce the use of (pseudo)random number generation, randomisation, bootstrap, and Monte Caro methods in R. Knowledge of these tools can be especially useful in statistical hypothesis testing and biological modelling (e.g., individual-based models). This introduction was originally written...

Read More

Using Loops In R

This document is a practical guide for getting started using for and while loops in R. My goal is to help readers who are familiar with R, but unfamiliar with using loops in R, get started coding with loops. This...

Read More

Manuscripts In Rmarkdown

This document is a practical guide to getting started using Rmarkdown to write scientific documents, and particularly scientific manuscripts. My objective is to focus on the key features needed for scientific writing and thereby help the reader get started...

Read More

Using Version Control

This document is intended to be a practical and informal guide to start using version control as a research scientist. It was originally written for an event in Stirling Coding Club. Here I will first explain what version control...

Read More

Pointers In C For Scientists

Working with arrays of data (e.g., numeric vectors and matrices) is routine for scientific researchers doing statistics or modelling. In programming languages with which most researchers are probably familiar (e.g., R, python, and MATLAB), setting values...

Read More

Evolution Of Inbreeding

It is widely under-appreciated that active inbreeding – and especially biparental inbreeding – can be adaptive and therefore favoured by natural selection. Biparental inbreeding specifically refers to the situation in which two different, but genetically related, organisms breed and thereby...

Read More