# NOT RUN {
### Required participants for detecting a prevalence of 10%
### with a 95% confidence interval of 10% wide:
prevalencePower(.1);
### Required participants for detecting a prevalence of 10%
### with a 95% confidence interval of 4% wide:
prevalencePower(.1, .02);
### Required participants for detecting a prevalence of 60%
### with a 95% confidence interval of 10% wide:
prevalencePower(.6);
# }
Run the code above in your browser using DataLab