precautionary (version 0.1-2)

extend: Extend an existing simulation, using one of several stopping criteria

Description

A trial simulation carried through a predetermined number of replications may not achieve desired precision as judged by Monte Carlo standard errors (MCSE) of estimated toxicity counts. This method enables simulations of class c('precautionary','simulations') to be extended until a given level of precision has been achieved on expected counts of enrollment and DLTs, or (optionally) for a fixed additional number of simulations.

Usage

extend(sims, num_sims = NULL, target_mcse = 0.05)

Arguments

sims

An existing object of class c('precautionary','simulations')

num_sims

Optionally, a fixed number of additional replications to accumulate

target_mcse

Optionally, an MCSE constraint to be imposed on expected counts of DLTs, non-DLTs, and Total enrollment.

Value

An extended simulation of same class as sims.

See Also

See examples under simulate_trials and format.safetytab.