ObsTime.TwoArm {ClinTrialPredict}R Documentation

Calculate the observation time for a two-arm clinical trial

Description

predicting two-arm clinical trial

Usage

ObsTime.TwoArm(
  N.0 = NULL,
  N.1 = NULL,
  ratio = NULL,
  d = NULL,
  gamma.c = NULL,
  alpha0.t = NULL,
  nu0.t,
  alpha1.t,
  nu1.t,
  s,
  m,
  design2 = NULL
)

Arguments

N.0

number of subjects plan to be enrolled in control arm

N.1

number of subjects plan to be enrolled in experimental arm

ratio

randomization ratio between two arms: N.1 / N.0

d

expected number of events observed at time l

gamma.c

parameter of the exponential distribution of censoring time

alpha0.t

shape parameter of weibull survival distribution for control arm

nu0.t

scale parameter of weibull survival distribution for control arm

alpha1.t

shape parameters of weibull survival distribution for experimental arm

nu1.t

scale parameter of a weibull survival distribution for control arm

s

enrollment time

m

maximum follow-up time for a subject

design2

a list containing all the above parameters for two-arm design

Value

This function returns a list containing all design parameters, including the calculated observation time l

Examples

# calculate the observation time
ObsTime.TwoArm(N.0=100,N.1=100,d=10,gamma.c=1,alpha0.t = 1,nu0.t=5,alpha1.t=2,nu1.t=4,s=5,m=4)


[Package ClinTrialPredict version 0.0.4 Index]