plot.OptGS_opchar: Plot the operating characteristics of a group-sequential...

Description Usage Arguments Value See Also Examples

View source: R/plot.OptGS_opchar.R

Description

plot.OptGS_opchar() plots values from a group-sequential clinical trial operating characteristic object for a normally distributed primary outcome.

Usage

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

Arguments

x

An object of class OptGS_opchar, as returned by opchar.

...

For compatability with the generic.

output

A logical variable indicating whether to return output from the function.

Value

A list containing each of the input variables (subject to internal modification), along with the following elements:

See Also

an, des_gs, des_nearopt, des_opt, build, sim, opchar, plot.OptGS_des, print.OptGS_des, summary.OptGS_des.

Examples

1
2
3
4
5
# A two-stage design's operating characteristics
plot(opchar(opt_gs(), tau = seq(-des$delta, 2*des$delta, length.out = 100)))
# A three-stage design's operating characteristics
plot(opchar(opt_gs(J = 3),
     tau = seq(-des$delta, 2*des$delta, length.out = 100)))

mjg211/OptGS documentation built on May 28, 2021, 3:44 p.m.