ComenzarEmpieza gratis

Tests for two groups

Besides looking at associations between two or more continuous numeric variables, it is also useful to look for associations between a continuous numeric variable and a group variable, such as between abalone length and the dichotomous adult variable in abaloneKeep.

To look at this relationship, in this exercise, you will perform a t-test to determine if there a difference in abalone lengths between infants and adults.

The abaloneKeep dataset, dplyr and ggplot2 packages have been loaded for you.

Este ejercicio forma parte del curso

R For SAS Users

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Get n, mean, sd for length by adult groups
abaloneKeep %>% 
  ___ %>%
  ___ %>%
  summarise(across(everything(), list(___ = ~ mean(.x),
                                      ___ = ~ sd(.x))),
            N = ___)
Editar y ejecutar código