t_test_pairwise {kim} | R Documentation |
t-tests, pairwise
Description
Conducts a t-test for every possible pairwise comparison with Holm or Bonferroni correction
Usage
t_test_pairwise(
data = NULL,
iv_name = NULL,
dv_name = NULL,
sigfigs = 3,
cohen_d = TRUE,
cohen_d_w_ci = TRUE,
adjust_p = "holm",
bonferroni = NULL,
mann_whitney = TRUE,
t_test_stats = FALSE,
t_test_df_decimals = 1,
sd = FALSE,
round_p = 3,
anova = TRUE,
round_f = 2
)
Arguments
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 |
cohen_d |
if |
cohen_d_w_ci |
if |
adjust_p |
the name of the method to use to adjust p-values.
If |
bonferroni |
The use of this argument is deprecated.
Use the 'adjust_p' argument instead.
If |
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 |
round_p |
number of decimal places to which to round p-values (default = 3) |
anova |
Should a one-way ANOVA be conducted and reported? (default = TRUE) |
round_f |
number of decimal places to which to round the f statistic (default = 2) |
Value
the output will be a data.table showing results of all pairwise comparisons between levels of the independent variable.
Examples
## Not run:
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)
## End(Not run)