Comparing Groups
Let’s explore the different group comparisons.
We'll cover the following
R functionality to compare groups
We’ve used the mean()
, var()
, and sd()
functions to calculate the overall mean, variance, and standard deviation for the heights of all 30 plants from the darwin
data frame. We can do the same for the two experimental treatments using the Cross
and Self
columns in the wide format dataset (the data frame from the Sleuth
package). This is shown in the code snippet below:
Get hands-on with 1400+ tech skills courses.