SimData.OneArm {ClinTrialPredict} | R Documentation |
Simulating survival dataset for a one-arm design
Description
Simulating survival dataset for a one-arm design
Usage
SimData.OneArm(
N = NULL,
d = NULL,
l = NULL,
gamma = NULL,
s = NULL,
m = NULL,
alpha = NULL,
nu = NULL,
design1,
seed,
nsim
)
Arguments
N |
Number of subjects plan to enrolled |
d |
expected number of events observed at time |
l |
observation time |
gamma |
parameter of the exponential distribution of censoring time |
s |
enrollment period |
m |
maximum follow-up for a single subject |
alpha |
shape parameter of weibull survival distribution |
nu |
scale parameter of weibull survival distribution |
design1 |
a list containing all the above parameters for one-arm design |
seed |
random seed number |
nsim |
number of simulations |
Value
This function will return the simulated datasets and the according design settings
Examples
design1 <- TrialPred.OneArm(N=100,d=NULL,l=3,gamma=0.1
,s=12,m=6,alpha=1,nu=20)
# Simulate 100 datasets under design1
SimData.OneArm(design1=design1,seed=1234,nsim=100)
[Package ClinTrialPredict version 0.0.4 Index]