plot.sa_ci_fixed: Plot the confidence intervals, and the confidence interval...

Description Usage Arguments Value See Also Examples

View source: R/plot.sa_ci_fixed.R

Description

Plots the confidence intervals, and the performance of the confidence interval determination procedures, in a single-stage single-arm trial design for a single binary endpoint determined using ci_fixed(). A range of plots are available, of which the confidence intervals and the coverage probability curve will be printed by default.

Usage

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

Arguments

x

An object of class "sa_ci_fixed", as returned by ci_fixed().

...

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_fixed, opchar_fixed, est_fixed, pval_fixed, ci_fixed, and their associated plot family of functions.

Examples

1
2
3
4
5
6
7
# Find the optimal single-stage design for the default parameters
des <- des_fixed()
# Determine the performance of the confidence interval determination
# procedures for a range of possible response probabilities
ci  <- ci_fixed(des, pi = seq(from = 0, to = 1, by = 0.01))
# Plot the confidence intervals and the determination procedures performance
plot(ci)

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