swh:1:snp:ff0951ca787d0b7f47dc2335f47fed43820a6324
Raw File
Tip revision: e77353225ac1a9bdfa1762caa057c15374a65d38 authored by Venkatraman E. Seshan on 22 July 2014, 00:00:00 UTC
version 1.0.6
Tip revision: e773532
gsdesign.Rd

\name{gsdesign}
\title{Group Sequential Designs}
\alias{gsdesign}
\alias{gsdesign.binomial}
\alias{gsdesign.normal}
\alias{gsdesign.survival}
\description{
  Functions to calculate sample size for group sequential designs
}
\usage{
gsdesign.binomial(ifrac, pC, pE, sig.level = 0.05, power = 0.8,
  delta.eb=0.5, delta.fb = NULL, alternative = c("two.sided",
  "one.sided"), pooled.variance = FALSE, CPS = TRUE, tol=0.00001, ...) 
gsdesign.normal(ifrac, delta, sd = 1, sig.level = 0.05,
  power = 0.8, delta.eb = 0.5, delta.fb = NULL, alternative = 
  c("two.sided", "one.sided"), tol=0.00001, ...)
gsdesign.survival(ifrac, haz.ratio, sig.level = 0.05, 
  power = 0.8, delta.eb = 0.5, delta.fb = NULL, alternative = 
  c("two.sided", "one.sided"), tol=0.00001, ...)
}
\arguments{
  \item{ifrac}{information fraction or the ratio of current sample size
    or number of events to the total sample size or number of events.
    This should be an increasing vector of numbers from 0 to 1 with the
    last one being 1.  If just 1 is given a fixed sample design is derived.}
  \item{pC}{prob of success of the standard therapy (for binomial data)}
  \item{pE}{prob of success of the experimental therapy (for binomial data)}
  \item{delta}{true difference in means (for normal data)}
  \item{sd}{standard deviation (for normal data)}
  \item{haz.ratio}{hazard ratio (for survival comparison)}
  \item{sig.level}{significance level (type I error probability)}
  \item{power}{power of test (1 minus type II error probability)}
  \item{delta.eb}{power for efficacy boundary in the Pocock (=0) to
    O'Brien-Fleming (=0.5) family (default is 0.5) }
  \item{delta.fb}{power for futility boundary in the Pocock (=0) to
    O'Brien-Fleming (=0.5) family (default is NULL i.e. no futility
    boundary is requested.) }
  \item{alternative}{one- or two-sided test.}
  \item{pooled.variance}{whether the test statistic is standardized by
    pooled (2*pbar*(1-pbar)) or unpooled variance (pC*(1-pC) + pE*(1-pE)).
    Default is unpooled variance.}
  \item{CPS}{whether continuity correction is used for sample size
    calculation as in Casagrande, Pike & Smith. Default is to use it.}
  \item{tol}{tolerance level for multivariate normal probability
    computation.}
  \item{...}{additional options passed on the pmvnorm function.}
}
\value{
  a list with ifrac, sig.level, power, alternative, delta.eb, delta.fb and:
  \item{efbdry}{the critical value to use at the different looks.}
  \item{futbdry}{the critical value to use at the different looks.}
  \item{sample.size}{the sample size per arm for binomial/normal data.}
  \item{num.events}{the total number of failures which should be
    converted to number of subjects using censoring proportion.}  
}
\details{
  The futility boundary is not returned when delta.fb is not specified
  i.e. stopping for futility is not requested.  The futility boundary is
  non-binding.  That is the significance level is not adjusted to account
  for early stopping for utility.  This makes the test a bit conservative
  in that the true size is less than the nominal level.

  The Casagrande-Pike-Smith type continuity correction is obtained using
  the formula n*{1 + sqrt{1+4/{abs(pC-pE)*n}}}^2 where n is the
  uncorrected sample size.
}
\keyword{design}
back to top