vtScenario {visit} | R Documentation |
Set simulation scenario
Description
Simulation function. Get true 's using marginal probabilities and
odds ratio
for all dose levels.
Usage
vtScenario(tox = c(0.05, 0.05, 0.08), res = c(0.2, 0.3, 0.5),
rho = 1)
Arguments
tox |
Vector of marginal DLT risk rates for all levels |
res |
Vector of marginal immune response rates for all levels |
rho |
Vector of odds ratio for all levels. If length of |
Details
The calculation is as following. If , then
,
,
, and
. Otherwise,
,
,
, and
, where
and
.
Value
a VTTRUEPS
object containing all 's in a matrix
with its number of rows equaling the number of dose levels and its number
of columns being 4.
Examples
rst.sce <- vtScenario(tox=c(0.05, 0.05, 0.08), res=c(0.2, 0.3, 0.5), rho=1)
[Package visit version 2.2 Index]