test: Compare EDA objects.

View source: R/functions_testing.R

testR Documentation

Compare EDA objects.

Description

compare two or more EDA objects with a range of statistical tests.

Usage

test(
  ...,
  type = c("t_test", "paired_t_test", "sign_test", "mann_whitney_test", "wilcoxon_test",
    "anova", "rm_anova", "kruskal_test", "friedman_test", "chisq_test"),
  exact = TRUE,
  ci = TRUE,
  boot_method = c("percentile", "bca", "normality")
)

Arguments

...

EDA objects, at least two, created by eda.

type

type of statistic test. For two numeric EDA objects: t test ('t_test', t.test), paired t test ('paired_t_test', t.test), sign test ('sign_test', SignTest), Mann-Whitney test ('mann_whitney_test', t.test) or paired Wilcoxon test ('wilcoxon_test', wilcox.test). Multiple numeric-type EDA objects can be compared with one-way ANOVA ('anova', aov), repeated measure one-way ANOVA ('rm_anova', aov), Kruskal-Wallis test ('kruskal_test', kruskal.test) or Friedman test for repeated measurements ('friedman_test', friedman.test). For factor-type EDA objects, Chi-squared test may be applied ('chisq_test', chisq.test).

exact

logical, should exact values for Chi-squared. Mann-Whitney and Wilcoxon test be returned?

ci

logical, should confidence intervals for the test effect size be returned?

boot_method

indicates how the bootstrap confidence intervals are calculated. Can be any of 'percentile', 'bca', or 'normality', defaults to 'percentile'.

Details

EDA object type is coerced to factor or numeric, as appropriate for the requested analysis. The default effect or location sizes returned as estimates with along with the test results include difference in mean for t tests, difference in (pseudo-) median for sign, Mann-Whitney and Wilcoxon tests, eta-squared ( for one-way ANOVA and repeated measure one-way ANOVA, eta-square for Kruskal-Wallis test (calculated by kruskal_effsize) and Kendall W for Friedman test (friedman_effsize). For Chi-squared test, Cramer's V is returned (cramerV).

Value

an eTest object with the test name, test statistic value and the default effect/location size with 95/


PiotrTymoszuk/ExDA documentation built on Nov. 17, 2024, 5:46 p.m.