BayesDIP
R package: Bayesian Decreasingly Informative Priors for Early Termination Phase II Trials
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.9%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
R package: Bayesian Decreasingly Informative Priors for Early Termination Phase II Trials
Basic Info
- Host: GitHub
- Owner: chenw10
- Language: R
- Default Branch: master
- Size: 40 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 3 years ago
· Last pushed over 3 years ago
Metadata Files
Readme
README.Rmd
---
title: "README"
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
echo = TRUE,
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# BayesDIP
Provide early termination phase II trial designs with a decreasingly informative prior (DIP)
or a regular Bayesian prior chosen by the user. The program can determine the minimum
planned sample size necessary to achieve the user-specified admissible designs. The program
can also perform power and expected sample size calculations for the tests in early
termination Phase II trials.[1]
## Installation
You can install from CRAN with:
```{r eval = FALSE}
install.packages("BayesDIP")
```
Or try the development version from [GitHub] with:
```{r eval = FALSE}
# install.packages("devtools")
devtools::install_github("chenw10/BayesDIP")
```
## Example
```{r example}
library(BayesDIP)
# Calculate the minimum planned sample size within the range 10<=N<=100,
# under an admissible design which is set as 80% power and 5% type I error here.
# One sample Bernoulli model with the response rate for the new treatment is 0.5,
# the null response rate is 0.3, and the target improvement to achieve is 0.
# The alternative hypothesis: p1 > p0 + d
# Simulate 10 replicate trials using this design with efficacy boundary 0.98
# and futility boundary 0.05.
### Designs with traditional Bayesian prior Beta(1,1)
### Designs and operating characteristics based on 100 simulations:
OneSampleBernoulli.Design(list(2,1,1), nmin = 10, nmax=100, p0 = 0.3, p1 = 0.5, d = 0,
ps = 0.98, pf = 0.02, power = 0.80, t1error=0.05, alternative = "greater",
seed = 202210, sim = 100)
### Designs with DIP
### Designs and operating characteristics based on 10 simulations:
OneSampleBernoulli.Design(list(1,0,0), nmin = 10, nmax=100, p0 = 0.3, p1 = 0.5, d = 0,
ps = 0.98, pf = 0.02, power = 0.80, t1error=0.05, alternative = "greater",
seed = 202210, sim = 100)
# Calculate the power, type I error and the expected sample size given a planned sample size
# One sample Bernoulli model with the response rate for the new treatment is 0.5,
# the null response rate is 0.3, and the target improvement to achieve is 0.05.
# The alternative hypothesis: p1 > p0 + d
# Simulate 100 replicate trials for a given planned sample size 100 using this design
# with efficacy boundary 0.98 and futility boundary 0.05.
## with traditional Bayesian prior Beta(1,1)
## Operating characteristics based on 100 simulations:
OneSampleBernoulli(list(2,1,1), N = 100, p0 = 0.3, p1 = 0.5, d = 0.05,
ps = 0.98, pf = 0.05, alternative = "greater",
seed = 202210, sim = 100)
## with DIP
## Operating characteristics based on 100 simulations:
OneSampleBernoulli(list(1,0,0), N = 100, p0 = 0.3, p1 = 0.5, d = 0.05,
ps = 0.98, pf = 0.05, alternative = "greater",
seed = 202210, sim = 100)
```
## Reference
[1] Wang C, Sabo RT, Mukhopadhyay ND, and Perera RA. Early termination in single-parameter model phase II clinical trial designs using decreasingly informative priors. \textit{International Journal of Clinical Trials}, 9(2): April - June 2022. https://doi.org/10.18203/2349-3259.ijct20221110
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 2 years ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 552 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: BayesDIP
Bayesian Decreasingly Informative Priors for Early Termination Phase II Trials
- Homepage: <https://github.com/chenw10/BayesDIP>
- Documentation: http://cran.r-project.org/web/packages/BayesDIP/BayesDIP.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 0.1.1
published over 3 years ago
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 32.9%
Stargazers count: 35.2%
Downloads: 35.4%
Dependent repos count: 35.5%
Maintainers (1)
Last synced:
9 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- stats * imports