Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Similar documents
Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package datasets.load

Package fastdummies. January 8, 2018

Package ECctmc. May 1, 2018

Package messaging. May 27, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package deductive. June 2, 2017

Package validara. October 19, 2017

Package samplesizecmh

Package sfc. August 29, 2016

Package spark. July 21, 2017

Package ecoseries. R topics documented: September 27, 2017

Package SEMrushR. November 3, 2018

Package raker. October 10, 2017

Package coga. May 8, 2018

Package dbx. July 5, 2018

Package repec. August 31, 2018

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package strat. November 23, 2016

Package sessioninfo. June 21, 2017

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package bisect. April 16, 2018

Package available. November 17, 2017

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package kirby21.base

Package gtrendsr. October 19, 2017

Package librarian. R topics documented:

Package PCADSC. April 19, 2017

Package tm.plugin.lexisnexis

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package calpassapi. August 25, 2018

Package canvasxpress

Package clipr. June 23, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package pwr. R topics documented: March 25, Version Date Title Basic Functions for Power Analysis

Package vip. June 15, 2018

Package wrswor. R topics documented: February 2, Type Package

Package ether. September 22, 2018

Package mdftracks. February 6, 2017

Package farver. November 20, 2018

Package TrafficBDE. March 1, 2018

Package birtr. October 4, 2017

Package knitrprogressbar

Package shinyhelper. June 21, 2018

Package jstree. October 24, 2017

Package gtrendsr. August 4, 2018

Package projector. February 27, 2018

Package spelling. December 18, 2017

Package areaplot. October 18, 2017

Package WordR. September 7, 2017

Package slickr. March 6, 2018

Package ThreeArmedTrials

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package tidyimpute. March 5, 2018

Package aws.transcribe

Package zip. R topics documented: March 11, Title Cross-Platform 'zip' Compression Version 2.0.1

Package comparedf. February 11, 2019

Package sankey. R topics documented: October 22, 2017

Package blandr. July 29, 2017

Package weco. May 4, 2018

Package embed. November 19, 2018

Package fusionclust. September 19, 2017

Package eply. April 6, 2018

Package docxtools. July 6, 2018

Package kdtools. April 26, 2018

Package semver. January 6, 2017

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package quadprogxt. February 4, 2018

Package ompr. November 18, 2017

Package colf. October 9, 2017

Package splithalf. March 17, 2018

Package testit. R topics documented: June 14, 2018

Package mixsqp. November 14, 2018

Package ScottKnottESD

Package barcoder. October 26, 2018

Package IATScore. January 10, 2018

Package estprod. May 2, 2018

Package rsppfp. November 20, 2018

Package vinereg. August 10, 2018

Package balance. October 12, 2018

Package iccbeta. January 28, 2019

Package geogrid. August 19, 2018

Package goodpractice

Package editdata. October 7, 2017

R topics documented: 2 genbernoullidata

Package pkgbuild. October 16, 2018

Package vesselr. R topics documented: April 3, Type Package

Package ClusterBootstrap

Package shinyfeedback

Package hyphenatr. August 29, 2016

Package modmarg. R topics documented:

Package autoshiny. June 25, 2018

Package SimilaR. June 21, 2018

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package stapler. November 27, 2017

Package liftr. R topics documented: May 14, Type Package

Package crochet. January 8, 2018

Package waver. January 29, 2018

Package utilsipea. November 13, 2017

Transcription:

Type Package Title Power Analysis for AB Testing Version 0.1.0 Package pwrab June 6, 2017 Maintainer William Cha <william.minseuk.cha@gmail.com> Power analysis for AB testing. The calculations are based on the Welch's unequal variances t-test, which is generally preferred over the Student's t- test when sample sizes and variances of the two groups are unequal, which is frequently the case in AB testing. In such situations, the Student's t-test will give biased results due to using the pooled standard deviation, unlike the Welch's t-test. License GPL (>= 3) Encoding UTF-8 LazyData true Imports stats URL http://github.com/williamcha/pwrab BugReports http://github.com/williamcha/pwrab/issues Depends R (>= 3.3.1) RoxygenNote 6.0.1 Suggests testthat NeedsCompilation no Author William Cha [aut, cre] Repository CRAN Date/Publication 2017-06-06 10:19:03 UTC R topics documented: AB_t2n........................................... 2 AB_t2n_prop........................................ 3 Index 5 1

2 AB_t2n AB_t2n Two-Sample t-test Power Analysis AB_t2n performs the power analysis for AB testing. It uses the Welch s t-test, which allows for the standard deviation to vary across groups. Usage AB_t2n(N = NULL, percent_b = NULL, mean_diff = NULL, sd_a, sd_b, sig_level = NULL, power = NULL, alternative = c("two_sided", "less", "greater"), max_sample = 1e+07) Arguments N Total number of observations (sum of observations for groups A and B) percent_b mean_diff sd_a sd_b sig_level power alternative max_sample Percentage of total observations allocated to group B (between 0 and 1 - e.g. input.5 for 50%) Difference in means of the two groups, with mean_b - mean_a Standard deviation of group A Standard deviation of group B Significance level (Type I error probability) Power of test (1 minus Type II error probability) Character string specifying the alternative hypothesis, must be one of "two_sided" (default), "greater" or "less" Maximum sample size that is searched for Details Exactly one of the parameters N, percent_b, mean_diff, sig_level, and power must be passed as NULL, and the omitted parameter is determined from the others. sd_a and sd_b must be specified. When percent_b is the parameter omitted, two solutions may exist, in which case the smaller value will be returned Value Object of class "power.htest", a list of the arguments (including the computed one).

AB_t2n_prop 3 Examples # Search for power given other parameters AB_t2n(N = 3000, percent_b =.3, mean_diff =.15, sd_a = 1, sd_b = 2, sig_level =.05, alternative = 'two_sided') # Search for sample size required to satisfy other parameters AB_t2n(percent_B =.3, mean_diff =.15, sd_a = 1, sd_b = 2, sig_level =.05, power =.8, alternative = 'two_sided') AB_t2n_prop Two-Sample t-test Power Analysis for Proportions Usage AB_t2n_prop performs the power analysis for AB testing, and when dependent variables are proportions (between 0 and 1). It uses the Welch s t-test, which allows for the standard deviation to vary across groups. AB_t2n_prop(prop_A = NULL, prop_b = NULL, N = NULL, percent_b = NULL, sig_level = NULL, power = NULL, alternative = c("two_sided", "less", "greater"), max_sample = 1e+07) Arguments Details prop_a Proportion of successes in group A (between 0 and 1) prop_b Proportion of successes in group B (between 0 and 1) N Total number of observations (sum of observations for groups A and B) percent_b sig_level power alternative max_sample Percentage of total observations allocated to group B (between 0 and 1 - e.g. input.5 for 50%) Significance level (Type I error probability) Power of test (1 minus Type II error probability) Character string specifying the alternative hypothesis, must be one of "two_sided" (default), "greater" or "less" Maximum sample size that is searched for Exactly one of the parameters prop_a, prop_b, N, percent_b, sig_level, and power must be passed as NULL, and the omitted parameter is determined from the others. The standard deviations for each group are calculated using the formula sqrt(prop * (1 - prop)). When percent_b is the parameter omitted, two solutions may exist, in which case the smaller value will be returned. For two_sided tests, when prop_a or prop_b is omitted, two solutions may exist, in which case both will be reported

4 AB_t2n_prop Value Object of class "power.htest", a list of the arguments (including the computed one). Examples # Search for power given other parameters AB_t2n_prop(prop_A =.2, prop_b =.25, N = 3000, percent_b =.3, sig_level =.05, alternative = 'two_sided') # Search for proportion in group B required to satisfy other parameters AB_t2n_prop(prop_A =.2, N = 3000, percent_b =.3, power =.8, sig_level =.05, alternative = 'two_sided')

Index AB_t2n, 2 AB_t2n_prop, 3 5