View source: R/t_test_pairwise.R
t_test_pairwise | R Documentation |
Conducts a t-test for every possible pairwise comparison with Bonferroni correction
t_test_pairwise(
data = NULL,
iv_name = NULL,
dv_name = NULL,
sigfigs = 3,
mann_whitney = TRUE,
t_test_stats = FALSE,
t_test_df_decimals = 1,
sd = FALSE
)
data |
a data object (a data frame or a data.table) |
iv_name |
name of the independent variable |
dv_name |
name of the dependent variable |
sigfigs |
number of significant digits to round to |
mann_whitney |
if |
t_test_stats |
if |
t_test_df_decimals |
number of decimals for the degrees of freedom in t-tests (default = 1) |
sd |
if |
the output will be a data.table showing results of all pairwise comparisons between levels of the independent variable.
t_test_pairwise(data = iris, iv_name = "Species", dv_name = "Sepal.Length")
t_test_pairwise(data = iris, iv_name = "Species",
dv_name = "Sepal.Length", t_test_stats = TRUE, sd = TRUE)
t_test_pairwise(data = iris, iv_name = "Species", dv_name = "Sepal.Length",
mann_whitney = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.