Learn R Programming

visit (version 2.2)

vtSimu: Conduct simulation study

Description

Simulate clinical trials with given settings for multiple times to evaluate the study operating characteristics.

Usage

vtSimu(n.rep = 100, seed = NULL, ..., n.cores = 1,
  update.progress = NULL)

Value

A class VTSIMU list with length n.rep of results. Each item is a list return from vtSingleTrial.

Arguments

n.rep

Number of repetitions

seed

Seed

...

Optional parameters for vtSingleTrial

n.cores

Number of cores for parallel computations

update.progress

Reserved parameter for Shiny GUI

Examples

Run this code

rst.sce <- vtScenario(tox = c(0.05, 0.05, 0.08),
                      res = c(0.2, 0.3, 0.5),
                      rho = 1)

rst.simu  <- vtSimu(n.rep = 100, n.cors = 2, trueps = rst.sce,
                    size.cohort=3, size.level=12, prob.mdl="NONPARA");


Run the code above in your browser using DataLab