Package: DRpower 1.0.4

Bob Verity

DRpower: Study design and analysis for pfhrp2/3 deletion prevalence studies

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.

Authors:Bob Verity [aut, cre], Shazia Ruybal [aut]

DRpower_1.0.4.tar.gz
DRpower_1.0.4.zip(r-4.7)DRpower_1.0.4.zip(r-4.6)DRpower_1.0.4.zip(r-4.5)
DRpower_1.0.4.tgz(r-4.6-x86_64)DRpower_1.0.4.tgz(r-4.6-arm64)DRpower_1.0.4.tgz(r-4.5-x86_64)DRpower_1.0.4.tgz(r-4.5-arm64)
DRpower_1.0.4.tar.gz(r-4.7-arm64)DRpower_1.0.4.tar.gz(r-4.7-x86_64)DRpower_1.0.4.tar.gz(r-4.6-arm64)DRpower_1.0.4.tar.gz(r-4.6-x86_64)
DRpower_1.0.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
DRpower/json (API)

# Install 'DRpower' in R:
install.packages('DRpower', repos = c('https://plasmogenepi.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mrc-ide/drpower/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • df_sim - Summary of simulations from the threshold analysis
  • df_ss - Minimum sample sizes for the threshold analysis
  • historical_data - Data from historical pfhrp2 studies that passed filters for inclusion into an ICC analysis.

On CRAN:

Conda:

cpp

4.87 score 2 stars 53 scripts 18 exports 35 dependencies

Last updated from:133243fdbe. Checks:13 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK205
linux-devel-x86_64OK216
source / vignettesOK282
linux-release-arm64OK232
linux-release-x86_64OK215
macos-release-arm64OK144
macos-release-x86_64OK420
macos-oldrel-arm64OK168
macos-oldrel-x86_64OK282
windows-develOK423
windows-releaseOK171
windows-oldrelOK160
wasm-releaseOK163

Exports:%>%check_DRpower_loadedget_ICCget_jointget_marginget_margin_Bayesianget_margin_CPget_power_presenceget_power_thresholdget_prevalenceget_sample_size_marginget_sample_size_margin_CPget_sample_size_presenceget_sample_size_tableplot_ICCplot_jointplot_powerplot_prevalence

Dependencies:clicpp11dplyrextraDistrfarvergenericsggplot2gluegtableisobandknitrProgressBarlabelinglifecyclemagrittrpillarpkgconfigpurrrR.methodsS3R.ooR6RColorBrewerRcppRcppArmadillorlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Analysing data

Rendered fromtutorial_analysis.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-05-25

Background

Rendered fromrationale1_background.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-05-25

CIs and Overdispersion

Rendered fromrationale2_issue.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-05-25

Designing a study

Rendered fromtutorial_design.Rmdusingknitr::knitron May 20 2026.

Last update: 2025-07-24
Started: 2023-05-25

Historical analysis

Rendered fromhistorical_analysis.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-12-10
Started: 2023-07-25

How to Summarise the Prevalence

Rendered fromsummarise_prevalence.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-07-25

Installation

Rendered frominstallation.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-12-12
Started: 2023-05-25

Mathematical Details

Rendered frommathematical_details.Rmdusingknitr::knitron May 20 2026.

Last update: 2025-07-24
Started: 2023-07-25

Power and Sample Size in the DRpower Model

Rendered fromrationale8_power.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-12-10
Started: 2023-07-25

Sample Size Calculation in the 2020 WHO Master Protocol

Rendered fromrationale6_master_protocol.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-07-25

The Design Effect

Rendered fromrationale3_design_effect.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-05-25

The DRpower model

Rendered fromrationale5_bayesian.Rmdusingknitr::knitron May 20 2026.

Last update: 2025-07-24
Started: 2023-07-25

The One-sample Z-test

Rendered fromrationale7_ztest.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-07-25

Weaknesses with the CI-based Approach

Rendered fromrationale4_weaknesses.Rmdusingknitr::knitron May 20 2026.

Last update: 2023-11-30
Started: 2023-05-25