BMpTest: Brunner-Munzel Test (Permutation Version) for Two Independent Groups
Description
Performs the Brunner-Munzel test using a permutation approach, suitable for
comparing two independent samples when the assumption of equal variances may not hold.
An object of class "comparacion" and "brunnermunzel_perm", containing:
Resultados: A data frame with comparison name, mean difference, empirical p-value, and significance.
Promedios: A named numeric vector of group means.
Orden_Medias: Group names ordered by their mean.
Metodo: Description of the method used.
Arguments
grupo1
A numeric vector representing the first group.
grupo2
A numeric vector representing the second group.
alpha
Significance level (default is 0.05).
alternative
Character string specifying the alternative hypothesis:
one of "two.sided" (default), "greater", or "less".
nperm
Number of permutations to perform (default = 10000).
seed
Optional random seed for reproducibility (default is NULL).
Details
This version computes an empirical p-value based on resampling, without relying
on the t-distribution approximation.
References
Brunner, E., & Munzel, U. (2000). "The nonparametric Behrens-Fisher problem:
Asymptotic theory and a small-sample approximation." Biometrical Journal, 42(1), 17–25.