mrc-ide. To fix this you can add URL: https://plasmogenepi.r-universe.dev/DRpower to the package DESCRIPTION file. See also theR-universe documentation.Package: DRpower 1.0.4
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:
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
- 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.
Last updated from:133243fdbe. Checks:13 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 205 | ||
| linux-devel-x86_64 | OK | 216 | ||
| source / vignettes | OK | 282 | ||
| linux-release-arm64 | OK | 232 | ||
| linux-release-x86_64 | OK | 215 | ||
| macos-release-arm64 | OK | 144 | ||
| macos-release-x86_64 | OK | 420 | ||
| macos-oldrel-arm64 | OK | 168 | ||
| macos-oldrel-x86_64 | OK | 282 | ||
| windows-devel | OK | 423 | ||
| windows-release | OK | 171 | ||
| windows-oldrel | OK | 160 | ||
| wasm-release | OK | 163 |
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
