Category Archives: R

Independent t-test in R

As scientists, we often want to know if the difference between two groups is important or significant. For example, you may have data on leg strength from students who came to class wearing dress shoes or running shoes. How would you decide if there was a difference in strength between these two groups? How would you quantify the size of

Read more

R: Analysing small datasets – Part 2

In the previous post we plotted repeated measures data from 10 subjects under 2 conditions. There are different ways to analyse small datasets. We could apply parametric methods to analyse the data values, such as describing the data with means and standard deviations, and calculating a paired difference. Or, we could also apply non-parametric methods by analysing data values based

Read more

R: Visualize and calculate a Pearson correlation

Scientists are often interested in understanding the relationship between two variables. One simple way to understand and quantify a relationship between two variables is correlation analysis. Assumptions. This post assumes you understand the theory behind correlation analysis and have a working knowledge of R; it focuses on how to run this type of analysis in R. The dataset: foot length

Read more