ph2rand

Development version of ph2rand, an R package for the design of randomized comparative phase II oncology trials

https://github.com/mjg211/ph2rand

Science Score: 33.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 15 DOI reference(s) in README
  • Academic publication links
    Links to: pubmed.ncbi, ncbi.nlm.nih.gov
  • Committers with academic emails
    3 of 3 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.1%) to scientific vocabulary

Keywords

adaptive-design bernard bernoulli binary binomial cancer clinical-trials drug-development exact fisher minimax oncology optimal phase-2 power sample-size type-i
Last synced: 6 months ago · JSON representation

Repository

Development version of ph2rand, an R package for the design of randomized comparative phase II oncology trials

Basic Info
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
adaptive-design bernard bernoulli binary binomial cancer clinical-trials drug-development exact fisher minimax oncology optimal phase-2 power sample-size type-i
Created over 6 years ago · Last pushed almost 5 years ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---



```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

```{r, echo = F}
suppressPackageStartupMessages(library(ph2rand))
```

# ph2rand 

*Randomized Phase II Oncology Trials with Bernoulli Outcomes*

## Description

__ph2rand__ provides functions to assist with the design of randomized comparative phase II oncology trials that assume their primary outcome variable is Bernoulli distributed.
Specifically, support is provided to (a) perform a sample size calculation when using one of several published designs (Jung, 2008; Jung and Sargent, 2014; Kepner, 2010; Litwin *et al*, 2017, Shan *et al*, 2013), (b) evaluate the operating characteristics of a given design (both analytically and via simulation), and (c) produce informative plots.

## Getting started

You can install the the latest development version of __ph2rand__, available from [GitHub](https://github.com/), with

```{r, eval = F}
devtools::install_github("mjg211/ph2rand")
```

An introductory example of how to make use of the package’s core functionality can be found below.
For further help, please see the package vignettes or email michael.grayling@newcastle.ac.uk.

## Example: Two-stage designs

We demonstrate functionality for two-stage designs, with the approach for single-stage designs being similar.
First, find a two-stage design from Jung (2008) for the default parameters

```{r binomial}
des_jung <- des_two_stage()
```

Then examine its required sample size in each arm, in each stage

```{r binomial_samplesize}
des_jung$nC
des_jung$nE
```

Next, look at its key operating characteristics

```{r binomial_opchar}
des_jung$opchar
```

Compare this to the equivalent design from Litwin *et al* (2017)

```{r sat}
des_litwin_et_al <- des_two_stage(type  = "sat",
                                  nCmax = 20L)
des_litwin_et_al$nC
des_litwin_et_al$nE
des_litwin_et_al$opchar
```

Now to that from Shan (2013)

```{r barnard}
des_shan_et_al <- des_two_stage(type  = "barnard",
                                nCmax = 40L)
des_shan_et_al$nC
des_shan_et_al$nE
des_shan_et_al$opchar
```

And finally that from Jung and Sargent (2014)

```{r fisher}
des_jung_sargent <- des_two_stage(type  = "fisher")
des_jung_sargent$nC
des_jung_sargent$nE
des_jung_sargent$opchar
```

We can then readily find the terminal points of any of these designs, along with their probability mass functions and operating characteristics for any true response rates.
For example, consider two scenarios given by

```{r pi}
pi <- rbind(c(0.1, 0.1),
            c(0.1, 0.3))
```

Then find the terminal points, probability mass functions, and operating characteristics (both analytically and via simulation) of the Jung (2008) design with

```{r terminal_pmf_opchar}
terminal_jung <- terminal(des_jung)
terminal_jung$terminal
pmf_jung      <- pmf(des_jung, pi)
pmf_jung$pmf
opchar_jung   <- opchar(des_jung, pi)
opchar_jung$opchar
sim_jung      <- sim(des_jung, pi)
sim_jung$sim
```

Finally, we can plot various factors relating to the designs.
For example, plot the terminal points of the Jung (2008) design (with their associated decisions), along with the probability of rejecting the null hypothesis when the response probabilities are equal in the two arms or when the difference in the response probabilities is the chosen treatment effect

```{r plot}
plot(des_jung)
```

See the package vignettes for further details.

## References

Jung SH (2008) Randomized phase II trials with a prospective control.
*Stat Med* 27(4):568--83.
DOI: [10.1002/sim.2961](https://doi.org/10.1002/sim.2961).
PMID: [17573688](https://pubmed.ncbi.nlm.nih.gov/17573688).

Jung SH, Sargent DJ (2014) Randomized phase II clinical trials.
*J Biopharm Stat* 24(4):802--16.
DOI: [10.1080/10543406.2014.901343](https://doi.org/10.1080/10543406.2014.901343).
PMID: [24697589](https://pubmed.ncbi.nlm.nih.gov/24697589).

Kepner JL (2010) On group sequential designs comparing two binomial proportions.
*J Biopharm Stat* 20(1):145--59.
DOI: [10.1080/10543400903280621](https://doi.org/10.1080/10543400903280621).
PMID: [20077254](https://pubmed.ncbi.nlm.nih.gov/20077254).

Litwin S, Basickes S, Ross EA (2017) Two-sample binary phase 2 trials with low type I error and low sample size.
*Stat Med* 36(9):1383--94.
DOI: [10.1002/sim.7226](https://doi.org/10.1002/sim.7226).
PMID: [28118686](https://pubmed.ncbi.nlm.nih.gov/28118686).

Shan G, Ma C, Hutson AD, Wilding GE (2013) Randomized two-stage phase II clinical trial designs based on Barnard's exact test.
*J Biopharm Stat* 23(5):1081--90.
DOI: [10.1080/10543406.2013.813525](https://doi.org/10.1080/10543406.2013.813525).
PMID: [23957517](https://pubmed.ncbi.nlm.nih.gov/23957517).

Owner

  • Name: Michael J Grayling
  • Login: mjg211
  • Kind: user
  • Location: Newcastle, UK

Population Health Sciences Institute, Newcastle University

GitHub Events

Total
Last Year

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 65
  • Total Committers: 3
  • Avg Commits per committer: 21.667
  • Development Distribution Score (DDS): 0.369
Top Committers
Name Email Commits
Michael J Grayling m****g@n****k 41
Michael J. Grayling m****1@c****k 21
Michael M****l@f****k 3
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads: unknown
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
cran.r-project.org: ph2rand

Randomized Phase II Oncology Trials with Bernoulli Outcomes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 0
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 43.8%
Downloads: 89.7%
Last synced: almost 3 years ago

Dependencies

DESCRIPTION cran
  • Rcpp * imports
  • dplyr * imports
  • ggplot2 * imports
  • scales * imports
  • stats * imports
  • tibble * imports
  • tidyr * imports
  • knitr * suggests
  • rmarkdown * suggests