Learn R Programming

OneArmPhaseTwoStudy (version 1.0.3)

Planning, Conducting, and Analysing Single-Arm Phase II Studies

Description

Purpose of this package is it to plan, monitor and evaluate oncological phase II studies. In general this kind of studies are single-arm trials with planned interim analysis and binary endpoint. To meet the resulting requirements, the package provides functions to calculate and evaluate 'Simon's two-stage designs' and 'so-called' 'subset designs'. If you are unfamiliar with this package a good starting point is to take a closer look at the functions getSolutions() and getSolutionsSub1().The web-based tool () extends the functionality of our R package by means of a proper dealing with over- and underrunning. The R function binom.test of the 'stats' R package and the package 'binom' might be helpful to assess the performance of the corresponding one-stage design as a reference.

Copy Link

Version

Install

install.packages('OneArmPhaseTwoStudy')

Monthly Downloads

21

Version

1.0.3

License

GPL (>= 2)

Maintainer

Johannes Krisam

Last Published

November 13th, 2017

Functions in OneArmPhaseTwoStudy (1.0.3)

getCE

Calculates the conditional error.
getCP

Calculates the conditional power.
getSolutionsSub1

Calculates designs for a given "sub1"-object.
get_CI

Calculates the confidence interval.
plot_confidence_set

Plots the "confidence set" according to the observed responses.
plot_simon_study_state

Plots the study state of a given Simon's two-stage design.
getD_equally

Get the conditional errors equally.
getD_none

Get the conditional errors.
get_UMVUE_GMS_subset_second_total

Calculates the "uniformly minimal variance unbiased estimator".
get_conditionalPower

Calculates the conditional power.
getP

Calculates the p-value (binomial test).
getSolutions

setupSub1Design

Creates a "sub1"-object.
Rcpp Modules simon

Functions and Objects created by Rcpp for the "Simon's two-stage design"
setSub1Params

Sets the parameters for a given "sub1"-object.
setupSimon

Creates a "simon"-object.
getD_proportionally

Get the conditional errors proportionally.
getN2

Calculates the number of patients which should be enrolled in the second stage.
get_confidence_set

Calculates the confidence set.
get_p_KC

Calculates the p-value.
plot_sub1_study_state

Plots the study state of a given subset design.
setSimonParams

Sets the parameters for a given "simon"-object.
Rcpp Modules sub1

Functions and Objects created by Rcpp for the "subset design"
toDataframe

get_UMVUE_GMS

Calculates the "uniformly minimal variance unbiased estimator".
get_UMVUE_GMS_subset_second_only

Calculates the "uniformly minimal variance unbiased estimator".
get_p_exact_subset

Calculates the exact p value.
get_r2_flex

Calculates the number of responses needed for the second stage.
getCP_simon

Returns the conditional power.
getD_distributeToOne

Get the conditional errors.