Package: DRpower Type: Package Title: Study design and analysis for pfhrp2/3 deletion prevalence studies Version: 1.0.4 Authors@R: as.person(c( "Bob Verity [aut, cre]", "Shazia Ruybal [aut]" )) Description: This package can be used in the design and/or analysis stages of Plasmodium falciparum pfhrp2/3 deletion prevalence studies. We assume that the study takes the form of a clustered prevalence survey, meaning the data consists of a numerator (number of deletions found) and denominator (number tested) over multiple clusters. We are interested in estimating the study-level prevalence, i.e. over all clusters, while accounting for the possibility of high intra-cluster correlation. The analysis approach uses a Bayesian random effects model to estimate prevalence and intra-cluster correlation. The approach to power analysis is simulation-based, running the analysis many times on simulated data and estimating empirical power. This method can be used to establish a minimum sample size required to achieve a given target power. The package also includes functions for more general power and sample size calculation, including presence/absence and margin of error based approaches. License: MIT + file LICENSE Encoding: UTF-8 LazyData: true LazyDataCompression: xz RoxygenNote: 7.3.2 BugReports: https://github.com/mrc-ide/DRpower/issues Imports: dplyr, extraDistr, magrittr, Rcpp, knitrProgressBar, ggplot2, tidyr Suggests: knitr, cowplot, kableExtra, testthat (>= 3.0.0), tidyverse Config/testthat/edition: 3 LinkingTo: Rcpp VignetteBuilder: knitr Depends: R (>= 3.5.0) Config/pak/sysreqs: libicu-dev Repository: https://plasmogenepi.r-universe.dev Date/Publication: 2025-07-24 12:48:17 UTC RemoteUrl: https://github.com/mrc-ide/DRpower RemoteRef: HEAD RemoteSha: 133243fdbef1b964e8a2542d7ca2811c29676c18 NeedsCompilation: yes Packaged: 2026-06-19 08:32:08 UTC; root Author: Bob Verity [aut, cre], Shazia Ruybal [aut] Maintainer: Bob Verity