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

## Documentation for package ‘OneArmPhaseTwoStudy’ version 1.0.3

- DESCRIPTION file.

## Help Pages

getCE | Calculates the conditional error.
getCP | Calculates the conditional power.
getCP_simon | Returns the conditional power.
getD_distributeToOne | Get the conditional errors.
getD_equally | Get the conditional errors equally.
getD_none | Get the conditional errors.
getD_proportionally | Get the conditional errors proportionally.
getN2 | Calculates the number of patients which should be enrolled in the second stage.
getP | Calculates the p-value (binomial test).
getSolutions | Returns designs for a given "simon"-object (see 'setupSimon')
getSolutionsSub1 | Calculates designs for a given "sub1"-object.
get_CI | Calculates the confidence interval.
get_conditionalPower | Calculates the conditional power.
get_confidence_set | Calculates the confidence set.
get_p_exact_subset | Calculates the exact p value.
get_p_KC | Calculates the p-value.
get_r2_flex | Calculates the number of responses needed for the second stage.
get_UMVUE_GMS | Calculates the "uniformly minimal variance unbiased estimator".
get_UMVUE_GMS_subset_second_only | Calculates the "uniformly minimal variance unbiased estimator".
get_UMVUE_GMS_subset_second_total | Calculates the "uniformly minimal variance unbiased estimator".
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.
plot_sub1_study_state | Plots the study state of a given subset design.
Rcpp_SimonDesign-class | Functions and Objects created by Rcpp for the "Simon's two-stage design"
Rcpp_Sub1Design-class | Functions and Objects created by Rcpp for the "subset design"
setSimonParams | Sets the parameters for a given "simon"-object.
setSub1Params | Sets the parameters for a given "sub1"-object.
setupSimon | Creates a "simon"-object.
setupSub1Design | Creates a "sub1"-object.
SimonDesign | Functions and Objects created by Rcpp for the "Simon's two-stage design"
Sub1Design | Functions and Objects created by Rcpp for the "subset design"
toDataframe | Helper function for 'getSolutions' and 'getSolutionsSub1'.