AB performs A/B testing for two-group experiments.
Usage
AB(a, b, rand = 9999, seed = 1)
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.
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 set.seed for
more details.
References
Ernst, M. D. (2004). Permutation Methods: A Basis for Exact
Inference. Statistical Science, 19(4), 676–685.
tools:::Rd_expr_doi("10.1214/088342304000000396").