[Gsdesign-commits] r365 - in pkg/gsDesign: . man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Jan 2 18:11:06 CET 2014


Author: keaven
Date: 2014-01-02 18:11:06 +0100 (Thu, 02 Jan 2014)
New Revision: 365

Modified:
   pkg/gsDesign/DESCRIPTION
   pkg/gsDesign/man/nSurv.Rd
   pkg/gsDesign/man/nSurvival.Rd
Log:
Updated help files for nSurv, nSurvival

Modified: pkg/gsDesign/DESCRIPTION
===================================================================
--- pkg/gsDesign/DESCRIPTION	2013-12-05 22:31:07 UTC (rev 364)
+++ pkg/gsDesign/DESCRIPTION	2014-01-02 17:11:06 UTC (rev 365)
@@ -1,5 +1,5 @@
 Package: gsDesign
-Version: 2.8-7
+Version: 2.8-8
 Title: Group Sequential Design
 Author: Keaven Anderson 
 Maintainer: Keaven Anderson <keaven_anderson at merck.com>

Modified: pkg/gsDesign/man/nSurv.Rd
===================================================================
--- pkg/gsDesign/man/nSurv.Rd	2013-12-05 22:31:07 UTC (rev 364)
+++ pkg/gsDesign/man/nSurv.Rd	2014-01-02 17:11:06 UTC (rev 365)
@@ -233,6 +233,10 @@
       eta=matrix(log(2)/c(40,50,45,55),ncol=2), S=3, 
       gamma=matrix(c(3,6,5,7),ncol=2), R=c(5,10), minfup = 12)
 
+# example where only 1 month of follow-up is desired
+# set failure rate to 0 after 1 month using lambdaC and S
+nSurv(lambdaC=c(.4,0),hr=2/3,S=1,minfup=1)
+
 # group sequential design (vary accrual rate to obtain power)
 x<-gsSurv(k=4,sfl=sfPower,sflpar=.5,lambdaC=log(2)/6, hr=.5, 
           eta=log(2)/40,gamma=1, T=36,  minfup = 12)

Modified: pkg/gsDesign/man/nSurvival.Rd
===================================================================
--- pkg/gsDesign/man/nSurvival.Rd	2013-12-05 22:31:07 UTC (rev 364)
+++ pkg/gsDesign/man/nSurvival.Rd	2014-01-02 17:11:06 UTC (rev 365)
@@ -80,6 +80,8 @@
 \deqn{\hat{\lambda}= \exp(z(1+r)/\sqrt{rn})}
 \deqn{z=log(\hat{\lambda})\sqrt{nr}/(1+r)}
 \deqn{n= (z(1+r)/log(\hat{\lambda}))^2/r.}
+
+\code{hrz2n()} translates an observed interim hazard ratio and interim z-value into the number of events required for the Z-value and hazard ratio to correspond to each other. \code{hrn2z()} translates a hazard ratio and number of events into an approximate corresponding Z-value. \code{zn2hr()} translates a Z-value and number of events into an approximate corresponding hazard ratio. Each of these functions has a default assumption of an underlying hazard ratio of 1 which can be changed using the argument \code{hr0}. \code{hrn2z()} and \code{zn2hr()} also have an argument \code{hr1} which is only used to compute the sign of the computed Z-value in the case of \code{hrn2z()} and whether or not a z-value > 0 corresponds to a hazard ratio > or < the null hazard ratio \code{hr0}.
 }
 
 \value{



More information about the Gsdesign-commits mailing list