AB | R Documentation |
AB
performs A/B testing for two-group experiments.
AB(a, b, rand = 9999, seed = 1)
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 |
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. |
Ernst, M. D. (2004). Permutation Methods: A Basis for Exact Inference. Statistical Science, 19(4), 676–685. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1214/088342304000000396")}.
AB(c(19, 22, 25, 26), c (23, 33, 40))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.