Learn R Programming

FIND (version 0.1.1)

decision_table: Generate Decision Tables with S3 Support

Description

Enhanced wrapper to generate decision tables that supports both legacy and S3 interfaces.

Usage

decision_table(...)

Value

A plot showing decision table(s) for the specified design(s).

Arguments

...

Either design objects (created with design_* functions) or legacy arguments (`3+3`, BOIN, mTPI2, i3+3, G3).

Examples

Run this code
# New S3 interface
boin <- design_boin(pT = 0.25, EI = c(0.15, 0.35), npts = 12)
i3 <- design_i3plus3(pT = 0.25, EI = c(0.2, 0.3), npts = 12)

# \donttest{
# Generate decision tables
decision_table(boin, i3)
# }

# Legacy interface still works
# \donttest{
decision_table(
  BOIN = get_decision_boin(pT = 0.25, EI = c(0.15, 0.35), npts = 12),
  `i3+3` = get_decision_i3plus3(pT = 0.25, EI = c(0.2, 0.3), npts = 12)
)
# }

Run the code above in your browser using DataLab