Description Usage Arguments Details Value Examples
R function to perform a "tidy" t-test
1 |
df |
data frame with the dependent and group variable |
dv |
raw (unquoted) name of the dependent variable |
group |
raw (unquoted) name of the grouping variable |
R function to compare two means using a t-test; returns the group means, test statistic and associated p-value, and effect size (Cohen's D).
A data frame containing the group means, test statistic and associated p-value, and effect size (Cohen's D)
1 2 3 4 5 6 7 8 9 10 11 12 | library(dplyr)
storms %>%
filter(status %in% c("tropical depression", "tropical storm")) %>%
mutate(category = as.integer(category)) %>%
t_test(dv = category, group = status)
storms_ss <- storms %>%
filter(status %in% c("tropical depression", "tropical storm")) %>%
mutate(category = as.integer(category))
t_test_df <- t_test(storms_ss, dv = category)
t_test_df
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.