Learn R Programming

DTAT (version 0.3-4)

ds.curve: Extract the dose-survival curve, with its upper and lower confidence band limits

Description

This utility function simply makes the results of dose.survfit available in the convenient form of a list.

Usage

ds.curve(de, ...)

Value

A list with components surv, upper and lower, each containing a vector that can be indexed by dose level.

Arguments

de

A data frame describing a dose-titration study.

...

Passed through to function dose.survfit

Author

David C. Norris

See Also

dose.survfit

Examples

Run this code
CV <- 0.7; mean_mtd <- 1.0
shape <- CV^-2; scale <- mean_mtd/shape
trial <- new("DE", doses=0.25 * 1.4^(0:6),
             MTDi=rgamma(24, shape=shape, scale=scale),
             units="mg")
trial <- titration(trial, periods=10)
ds.curve(trial@data)

Run the code above in your browser using DataLab