mm.test: Automatic mean/median comparison

View source: R/mm.test.R

mm.testR Documentation

Automatic mean/median comparison

Description

M.test() do all the possible tests of comparison of mean, even not mathematically corrects and even if hypothesis are wrong. Execute tests to verify hypothesis. The results are summarised in a graph. The user need to choose the good path, which is can be done automatically by m.test(). By default, find the path the more to the left.

Usage

mm.test(
  x,
  group,
  pval = 0.05,
  verbose = FALSE,
  return = TRUE,
  paired = FALSE,
  pval_ks = 0.01,
  maxcat = 50,
  plot = TRUE,
  silent = TRUE,
  boot = FALSE,
  iter = 100,
  conf = 0.95,
  code = FALSE,
  debug. = FALSE
)

Arguments

x

the values : a vector of values, with the samples to be compared.

group

categories : a vector of less (than maxcat) factors

pval

the usual level on confidence, 0.05 by default.

verbose

FALSE by defaul. Increase information.

return

to be completed

paired

FALSE by default, but can be passed to TRUE if each value of x in categories are paired and in the same order.

pval_ks

The p-value for repartitions tests like Kolmogorov-Smirnov or Shapiro : 0.01 by default.

maxcat

The maximum number of categories : 50 by default.

plot

TRUE to plot the graph with all the results.

silent

TRUE to keep the function silent : no warning

iter

100 by default, number of iterations in the bootstrap.

conf

Confidence of the bootstrap, 0.95 by default.

code

if TRUE, return the code that makes the different tests. FALSE by default

bootstrap

FALSE by default, dont do bootstrap. TRUE to make iter sampling

Author(s)

Julien Bousquet (2021)


Antoine-Masse/KefiR documentation built on Feb. 22, 2024, 5:54 a.m.