TrialPred.OneArm {ClinTrialPredict}R Documentation

Function for predicting one-arm clinical trial

Description

Function for predicting one-arm clinical trial

Usage

TrialPred.OneArm(
  N = NULL,
  d = NULL,
  l = NULL,
  gamma = NULL,
  s = NULL,
  m = NULL,
  alpha = NULL,
  nu = NULL,
  design1 = NULL
)

Arguments

N

Number of subjects plan to enrolled

d

expected number of events observed at time l

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

Value

This function returns a list containing all design parameters as the same with input parameters of this function. If any one of the parameters d, N, l or gamma is missing, it can be calculated based on the other parameters.

Examples

# Calculate the expected number of events in a one-arm clinical trial
TrialPred.OneArm(N=100,d=NULL,l=3,gamma=0.1,s=12,m=6,alpha=1,nu=20)

#Calculate the expected number of events using a list as input
design1 <- list(N=100,d=NULL,l=3,gamma=0.1,s=12,m=6,alpha=1,nu=20)
TrialPred.OneArm(design1=design1)

#Calculate the number of subjects enrolled
TrialPred.OneArm(N=NULL,d=8,l=15,gamma=0.1,s=12,m=6,alpha=1,nu=20)

#Calculate the observation time
TrialPred.OneArm(N=100,d=10,l=NULL,gamma=0.1,s=12,m=6,alpha=1,nu=20)

#Calculate the censoring parameter gamma
TrialPred.OneArm(N=100,d=10,l=10,gamma=NULL,s=12,m=6,alpha=1,nu=20)

[Package ClinTrialPredict version 0.0.4 Index]