mtd_text: MTD design text

View source: R/stat_text.R

mtd_textR Documentation

MTD design text

Description

Output standard 3+3 maximum tolerated dose design text.

Usage

mtd_text(prob = 1:5/10, ndose = 3L, expansion = 10L, digits = 2L, conf = 0.95)

Arguments

prob

a vector of toxicity event rates

ndose

number of dose levels

expansion

size of the expansion cohort

digits

number of digits past the decimal point to keep

conf

confidence level for confidence intervals

Value

A character string describing the design with attr(, "table") containing the DLT table in markdown format.

See Also

dlt_table; sim3p3

Other designs: b2p_text(), bin1samp_text(), simon_text(), twostg_text()

Examples

## basic usage
mtd_text()
cat(mtd_text(1:10 / 20, 5, 15))

## Not run: 
cat(mtd_text(), file = '~/mtd_design.txt')

## End(Not run)


raredd/desmon2 documentation built on Feb. 9, 2023, 12:09 p.m.