Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dgkeyes
Created September 23, 2020 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgkeyes/b7b44d1da3fd8396e1f66f8263031b8d to your computer and use it in GitHub Desktop.
Save dgkeyes/b7b44d1da3fd8396e1f66f8263031b8d to your computer and use it in GitHub Desktop.
## 1 ##
college %>%
t_test(exam_1 ~ athlete, var.equal = TRUE)
## 2 ##
college %>%
filter(gender != "Trans*") %>%
t_test(act_english ~ gender, var.equal = FALSE)
## Alternative 2 ##
college %>%
t_test(act_english ~ gender, var.equal = FALSE,
comparisons = list(c("Male", "Female")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment