I need to determine the sample size for my experiment. In my experiment I will select a set of x projects, from a population of N projects. For the sample of x projects will apply a treatment to know the proportion of projects that pass in this treatment.
I used the function ES.h of the package pwr. This function calculate the Effect Size between two proportions. For p1 = 100% and p2 = 95%, we have:
h = ES.h(1, 0.95) = 0.4510268
I understand that this effect size informs the need to detect the distance between the hypothesis.
I'm not very secure in my interpretation, but I used this value to determine the sample size.
pwr.p.test(h=h, sig.level = 0.05, power = 0.8)
Determining the sample size to detect up to 5 points difference in the proportions:
n = 38.58352
When I increase the Effect Size h, the sample size decreases. This is my interpretation? What do you think? Am I right?