plot.sa_pval_gs: Plot the p-values, and the p-value calculation procedures...

Description Usage Arguments Value See Also Examples

View source: R/plot.sa_pval_gs.R

Description

Plots the p-values, and the performance of the p-value calculation procedures, in a group sequential single-arm trial design for a single binary endpoint determined using pval_gs(). A range of plots are available, of which the p-values and the expected p-value curve will be printed by default.

Usage

1
2
## S3 method for class 'sa_pval_gs'
plot(x, ..., output = F)

Arguments

x

An object of class "sa_pval_gs", as returned by pval_gs().

...

Included for compatibility with the generic. Not currently used.

output

A logical variable indicating whether the outputs described below should be returned.

Value

If output = TRUE, a list containing the following elements is returned

See Also

des_gs, opchar_gs, est_gs, pval_gs, and ci_gs, and their associated plot family of functions.

Examples

1
2
3
4
5
6
7
# Find the optimal group sequential design for the default parameters
des  <- des_gs()
# Determine the performance of the p-value calculation procedures for a range of
# possible response probabilities
pval <- pval_gs(des, pi = seq(from = 0, to = 1, by = 0.01))
# Plot the p-values and the calculation procedures performance
plot(pval)

mjg211/singlearm documentation built on May 8, 2021, 3:17 a.m.