AB {peramo} | R Documentation |
Two-Group Permutation Test
Description
AB
performs A/B testing for two-group experiments.
Usage
AB(a, b, rand = 9999, seed = 1)
Arguments
a |
the measurement of responses of the first group. |
b |
the measurement of responses of the second group. |
rand |
an integer, the number of randomization samples. The default value is 9999. |
seed |
an integer, the seed for random number generation. Setting a seed
ensures the reproducibility of the result. See |
Value
AB
returns an one-row data frame with 6 columns:
nA |
the sample size of the first group. |
mean.A |
the mean responses of the first group. |
nB |
the sample size of the second group. |
mean.B |
the mean responses of the second group. |
mean.dif |
the difference between two mean responses. |
pval |
the p-value. |
References
Ernst, M. D. (2004). Permutation Methods: A Basis for Exact Inference. Statistical Science, 19(4), 676–685. doi:10.1214/088342304000000396.
Examples
AB(c(19, 22, 25, 26), c (23, 33, 40))