vtSingleTrial {visit} | R Documentation |
Simulate a single trial
Description
Simulation function for simulating a single trial
Usage
vtSingleTrial(trueps, size.cohort = 3, size.level = NULL,
etas = c(0.1, 0.3), dec.cut = 0.65, prob.mdl = c("NONPARA",
"NONPARA+", "PARA", "PARA+"), priors = NULL, ...)
Arguments
trueps |
True |
size.cohort |
Size of each cohort |
size.level |
Maximum number of patients for each dose level |
etas |
Vector of length 2 representing |
dec.cut |
Thresholds |
prob.mdl |
Option of the probability models:
Default value is |
priors |
A class |
... |
Optional arguments for |
Value
dose
: Optimal dose leveln.patients
: Number of patients for each dose level and each cohortptox
: Posterior mean of DLT risk rate after each interim analysispres
: Posterior mean of immune response rate after each interim analysisregion
: Identified region in the decision map after each interim analysisprob
: Posterior mean of\theta
's after each interim analysissmps
: Observed data after each cohort
Examples
rst.sce <- vtScenario(tox = c(0.05, 0.05, 0.08),
res = c(0.2, 0.3, 0.5),
rho = 1)
rst.simu <- vtSingleTrial(trueps = rst.sce, size.cohort=3, size.level=12,
prob.mdl="NONPARA");