The SEQDESIGN Procedure

Example 103.14 Computing Sample Size for Survival Data That Have Uniform Accrual

(View the complete code for this example.)

This example illustrates sample size computation for survival data when the accrual is uniform and when the data do not contain individual loss to follow-up.

Suppose that a clinic is conducting a study of the effect of a new cancer treatment. The study consists of exposing mice to a carcinogen and randomly assigning them to either the control group or the treatment group. The event of interest is death from cancer induced by the carcinogen, and the response is the time from randomization to death.

Following the derivations in the section Test for Two Survival Distributions with a Log-Rank Test, the hypothesis with the alternative hypothesis is used, where is the hazard ratio between the treatment group and the control group.

Also suppose that from past experience, the median survival time for the control group is weeks, and the study wants to detect a median survival time, weeks, with an 80% power in the trial. Assuming exponential survival functions for the two groups, the hazard rates can be computed from

where j = 0, 1.

Thus, the hazard rates are and under the null and alternative hypotheses, respectively.

The following statements invoke the SEQDESIGN procedure and specify the SAMPLESIZE statement to derive required sample sizes for a log-rank test that compares two survival distributions for the treatment effect (Jennison and Turnbull 2000, pp. 77–79; Whitehead 1997, pp. 36–39):

proc seqdesign;
   ErrorSpend: design nstages=4 method=errfuncobf
               ;
   samplesize model=twosamplesurvival
                   ( nullhazard=0.03466 hazard=0.01733
                     accrual=uniform accrate=15);
run;

In the SAMPLESIZE statement, the MODEL=TWOSAMPLESURVIVAL option specifies a log-rank test to compare two survival distributions for the treatment effect. The NULLHAZARD=0.03466 option specifies null hazard rates for the two groups under the null hypothesis, and the HAZARD=0.01733 option specifies the hazard rate for the first group under the alternative hypothesis.

The ACCRUAL= option specifies the method for individual accrual. The ACCRUAL=UNIFORM option (which is the default) specifies that the individual accrual is uniform with a constant accrual rate, and the ACCRATE= option specifies the accrual rate.

You do not have to specify the alternative reference explicitly for the sample size computation in the SEQDESIGN procedure. For the specified null and alternative hazards, and , the hazard ratio , and the alternative reference is

For a detailed derivation of these required sample sizes, see the section Test for Two Survival Distributions with a Log-Rank Test.

The "Design Information" table in Output 103.14.1 displays design specifications and four derived statistics: the actual maximum information, the maximum information, the average sample number under the null hypothesis (Null Ref ASN), and the average sample number under the alternative hypothesis (Alt Ref ASN).

Output 103.14.1: Error Spending Design Information

The SEQDESIGN Procedure
Design: ErrorSpend

Design Information
Statistic DistributionNormal
Boundary ScaleStandardized Z
Alternative HypothesisTwo-Sided
Early StopReject Null
MethodError Spending
Boundary KeyBoth
Alternative Reference0.693147
Number of Stages4
Alpha0.05
Beta0.1
Power0.9
Max Information (Percent of Fixed Sample)101.8279
Max Information22.26962
Null Ref ASN (Percent of Fixed Sample)101.2586
Alt Ref ASN (Percent of Fixed Sample)77.73131


The "Boundary Information" table in Output 103.14.2 displays the information level, including the proportion, actual level, and corresponding number of events at each stage. The table also displays the lower and upper alternative references, and the lower and upper boundary values at each stage.

Output 103.14.2: Boundary Information

Boundary Information (Standardized Z Scale)
Null Reference = 0
_Stage_ AlternativeBoundary Values
Information LevelReferenceLowerUpper
ProportionActualEventsLowerUpperAlphaAlpha
10.25005.56740522.26962-1.635501.63550-4.332634.33263
20.500011.1348144.53924-2.312952.31295-2.963332.96333
30.750016.7022166.80886-2.832782.83278-2.359022.35902
41.000022.2696289.07847-3.271013.27101-2.014092.01409


The "Sample Size Summary" table in Output 103.14.3 displays parameters for the sample size computation. Because the ACCTIME= option is not specified along with the ACCRATE= option, the minimum and maximum accrual times are derived.

Output 103.14.3: Sample Size Summary

Sample Size Summary
TestTwo-Sample Survival
Null Hazard Rate0.03466
Hazard Rate (Group A)0.01733
Hazard Rate (Group B)0.03466
Hazard Ratio0.5
log(Hazard Ratio)-0.69315
Reference HazardsAlt Ref
AccrualUniform
Accrual Rate15
Min Accrual Time5.938565
Min Sample Size89.07847
Max Accrual Time23.78469
Max Sample Size356.7704
Max Number of Events89.07847


With the minimum and maximum accrual times of 5.9386 and 23.7847, respectively, the ACCTIME=18 option specifies an accrual time of 18 for the trial.

The following statements invoke the SEQDESIGN procedure and specify the ACCTIME=18 option in the SAMPLESIZE statement to derive required sample sizes:

proc seqdesign;
   ErrorSpend: design nstages=4 method=errfuncobf
               ;
   samplesize model(ceiladjdesign=include)=twosamplesurvival
                   ( nullhazard=0.03466 hazard=0.01733
                     accrual=uniform accrate=15 acctime=18
                     ceiling=time);
run;

When CEILADJDESIGN=INCLUDE in the SAMPLESIZE statement, the "Design Information" table in Output 103.14.4 also displays the information for the adjusted design with ceiling times at the stages.

Output 103.14.4: Error Spending Design Information

The SEQDESIGN Procedure
Design: ErrorSpend

Design Information
Statistic DistributionNormal
Boundary ScaleStandardized Z
Alternative HypothesisTwo-Sided
Early StopReject Null
MethodError Spending
Boundary KeyBoth
Alternative Reference0.693147
Number of Stages4
Alpha0.05
Beta0.1
Power0.9
Max Information (Percent of Fixed Sample)101.8279
Max Information22.26962
Null Ref ASN (Percent of Fixed Sample)101.2586
Alt Ref ASN (Percent of Fixed Sample)77.73131
Adj Design Alpha0.05
Adj Design Beta0.08832
Adj Design Power0.91168
Adj Design Max Information (Percent of Fixed Sample)101.8064
Adj Design Max Information23.23194
Adj Design Null Ref ASN (Percent of Fixed Sample)101.2299
Adj Design Alt Ref ASN (Percent of Fixed Sample)76.32612


Because of the ceiling sample sizes in the adjusted design, Type I and Type II error levels cannot be maintained simultaneously. When BOUNDARYKEY=BOTH (the default) in the DESIGN statement, only the Type I error level is maintained for the adjusted design. The adjusted design has a power of 0.91168, and it reflects the change of maximum information from 22.2696 to 23.2319.

The "Sample Size Summary" table in Output 103.14.5 displays the follow-up time and maximum sample size with the specified accrual time. When you specify the CEILING=TIME option (which is the default), the required times at the stages are rounded up to integers for additional statistics, and the table also displays the follow-up time and total time that correspond to these ceiling times at the stages.

Output 103.14.5: Sample Size Summary

Sample Size Summary
TestTwo-Sample Survival
Null Hazard Rate0.03466
Hazard Rate (Group A)0.01733
Hazard Rate (Group B)0.03466
Hazard Ratio0.5
log(Hazard Ratio)-0.69315
Reference HazardsAlt Ref
AccrualUniform
Accrual Rate15
Accrual Time18
Follow-up Time7.133226
Total Time25.13323
Max Number of Events89.07847
Max Sample Size270
Expected Sample Size (Null Ref)269.9206
Expected Sample Size (Alt Ref)263.1141
Follow-up Time (Ceiling Time)8
Total Time (Ceiling Time)26


The "Number of Events (D) and Sample Sizes (N)" table in Output 103.14.6 displays the required time at each stage, in both fractional and integer numbers. The derived times under the heading "Fractional Time" are not integers. These times are rounded up to integers under the heading "Ceiling Time." The table also displays the numbers of events and sample sizes at each stage.

Output 103.14.6: Number of Events and Sample Sizes

Numbers of Events (D) and Sample Sizes (N)
Two-Sample Log-Rank Test
_Stage_Fractional TimeCeiling Time
DD(Grp 1)D(Grp 2)TimeNN(Grp 1)N(Grp 2)InformationDD(Grp 1)D(Grp 2)TimeNN(Grp 1)N(Grp 2)Information
122.277.7314.5411.2631168.9584.4784.475.567425.118.7416.3712180.0090.0090.006.2781
244.5415.7328.8116.2875244.31122.16122.1611.134848.2217.0731.1617255.00127.50127.5012.0552
366.8123.9342.8820.4926270.00135.00135.0016.702269.3924.9044.4821270.00135.00135.0017.3468
489.0832.5156.5725.1332270.00135.00135.0022.269692.9334.0458.8926270.00135.00135.0023.2319


The "Ceiling-Adjusted Design Boundary Information" table in Output 103.14.7 displays boundary information, similar to Output 103.14.2 but with ceiling times at the stages.

Output 103.14.7: Adjusted O’Brien-Fleming Boundary Information

Ceiling-Adjusted Design Boundary Information (Standardized Z Scale)
Null Reference = 0
_Stage_ AlternativeBoundary Values
Information LevelReferenceLowerUpper
ProportionActualEventsLowerUpperAlphaAlpha
10.27026.27806425.11225-1.736751.73675-4.155914.15591
20.518912.0551748.22068-2.406652.40665-2.901892.90189
30.746717.3467869.38712-2.886922.88692-2.369732.36973
41.000023.2319492.92776-3.340943.34094-2.013622.01362


Because the times have integer values, the information levels at the stages are not equally spaced in this example, but the design is still an O’Brien-Fleming error spending design.

Alternatively, you can specify the CEILING=N option in the SAMPLESIZE statement as follows to derive additional sample size information that includes ceiling sample sizes at each stage:

proc seqdesign;
   ErrorSpend: design nstages=4 method=errfuncobf
               ;
   samplesize model(ceiladjdesign=include)=twosamplesurvival
                   ( nullhazard=0.03466 hazard=0.01733
                     accrual=uniform accrate=15 acctime=18
                     ceiling=n);
run;

When CEILING=N, the required sample sizes at the stages are rounded up to integers, and the ceiling-adjusted design has ceiling sample sizes at the stages.