I am using the power.prop.test
function in R.
I am doing an A/B Test where I am determining the lift from a minimum amount of impressions per group in order for the A/B Test to be significant.
When I run the function like below, I get the second proportion (p2) to be 0.0001870215 with n being 2,571,429 per group:
original_conversion_rate<-0.00009
power.prop.test(n=2571429,
p1=original_conversion_rate,
power=0.8,
sig.level=0.05)
My answer is this:
Two-sample comparison of proportions power calculation
n = 2571429
p1 = 9e-05
p2 = 0.0001870215
sig.level = 0.05
power = 0.8
alternative = two.sided
NOTE: n is number in *each* group
When I rerun this with my answer for p2 (0.0001870215) to solve for n, a different n comes up (230,952.6):
original_conversion_rate<-0.00009
power.prop.test(
p1=original_conversion_rate,
p2=0.0001870215,
power=0.8,
sig.level=0.05)
My n changes to this:
Two-sample comparison of proportions power calculation
n = 230952.6
p1 = 9e-05
p2 = 0.0001870215
sig.level = 0.05
power = 0.8
alternative = two.sided
Why would n change in this case?