Learn R Programming

ClinTrialPredict (version 0.0.4)

CensTime.TwoArm: Calculate the censoring rate for a two-arm clinical trial

Description

Calculate the censoring rate for a two-arm clinical trial

Usage

CensTime.TwoArm(
  N.0 = NULL,
  N.1 = NULL,
  d = NULL,
  l = NULL,
  alpha0.t = NULL,
  nu0.t = NULL,
  alpha1.t = NULL,
  nu1.t = NULL,
  s = NULL,
  m = NULL,
  design2 = NULL
)

Value

This function returns a list containing all design parameters, including the calculated censoring rate gamma.c

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

d

expected number of events observed at time l

l

observation 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

Examples

Run this code
#calculate the censoring parameter
CensTime.TwoArm(N.0=100,N.1=100,d=10,l=3,alpha0.t=1,nu0.t=5,alpha1.t=2,nu1.t=4,s=5,m=4)

Run the code above in your browser using DataLab