summary.dec.sim: Summarizing simulation results from a dec.sim object

Description Usage Arguments Details Examples

View source: R/utility.R

Description

summary method for class "dec.sim".

Usage

1
2
## S3 method for class 'dec.sim'
summary(object, pt, ...)

Arguments

object

an object of class "dec.sim", a result of a call to dec.sim or sl.sim.

pt

target toxicity for each scenario.

...

Not used argument.

Details

summary is used for formating important statistics for dose-finding simulation. Giving the target toxicity, it returns the probability of selecting current dose level as the MTD and over the MTD, probability of selecting the true MTD, probability of subjects treated at or below the true MTD, etc. The MTD is defined as the highest dose level such that the toxicity probability is less than target toxicity probability, if target is less than the smallest probability, then the lowest dose level is set as MTD. For example, if target is 0.3 and true toxicity for five doses are 0.1, 0.25, 0.35, 0.40, then MTD is dose 2.

Examples

1
2
3
4
5
test.file <- system.file("extdata", "testS.csv", package = "tsdf")
dt <- dec.table(0.6,0.4,0.2,0.3,c(3,3,3))
out <- sl.sim(dt$table, test.file)
pt <- c(0.3, 0.4)
summary(out, pt)

tsdf documentation built on July 1, 2020, 6:18 p.m.