The SEQDESIGN Procedure

Example 103.15 Computing Sample Size for Survival Data with Truncated Exponential Accrual

(View the complete code for this example.)

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

Following the derivations in Example 103.14, the following statements invoke the SEQDESIGN procedure for sample size computation with exponential accrual and individual loss to follow-up:

proc seqdesign;
   OBrienFleming: design nstages=4 method=obf
                  ;
   samplesize model=twosamplesurvival
                    ( nullhazard=0.03466
                      hazard=0.01733
                      accrual=exp(parm=-0.1)
                      loss=exp(hazard=0.05)
                      acctime=20);
run;

The SAMPLESIZE statement derives required sample sizes for the test. 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 ACCTIME= option specifies the accrual time , and the ACCRUAL=EXP(POWER=–0.1) option specifies that the individual accrual be truncated exponential with a scaled power parameter . That is, the truncated exponential accrual has a power parameter in the accrual time . The LOSS=EXP(HAZARD=0.05) option specifies an exponential loss function with a hazard rate . 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.15.1 displays design specifications and the derived maximum information.

Output 103.15.1: O’Brien-Fleming Design Information

The SEQDESIGN Procedure
Design: OBrienFleming

Design Information
Statistic DistributionNormal
Boundary ScaleStandardized Z
Alternative HypothesisTwo-Sided
Early StopReject Null
MethodO'Brien-Fleming
Boundary KeyBoth
Alternative Reference0.693147
Number of Stages4
Alpha0.05
Beta0.1
Power0.9
Max Information (Percent of Fixed Sample)102.2163
Max Information22.35451
Null Ref ASN (Percent of Fixed Sample)101.5728
Alt Ref ASN (Percent of Fixed Sample)76.7397


The "Boundary Information" table in Output 103.15.2 displays information level, alternative reference, and boundary values.

Output 103.15.2: Boundary Information

Boundary Information (Standardized Z Scale)
Null Reference = 0
_Stage_ AlternativeBoundary Values
Information LevelReferenceLowerUpper
ProportionActualEventsLowerUpperAlphaAlpha
10.25005.58862722.35451-1.638621.63862-4.048594.04859
20.500011.1772544.70902-2.317362.31736-2.862782.86278
30.750016.7658867.06352-2.838172.83817-2.337452.33745
41.000022.3545189.41803-3.277243.27724-2.024292.02429


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

Output 103.15.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
AccrualTruncated Exponential with Losses
Scaled Exponential Parameter-0.1
Loss Hazard Rate0.05
Accrual Time20
Min Accrual Sample Size269
Max Accrual Sample Size553
Max Number of Events89.41803


With the minimum and maximum sample sizes of 269 and 553, respectively, the ACCNOBS=360 option specifies an accrual sample size of 360 for the trial.

proc seqdesign;
   OBrienFleming: design nstages=4
                  method=obf
                  ;
   samplesize model=twosamplesurvival
                    ( nullhazard=0.03466
                      hazard=0.01733
                      accrual=exp(parm=-0.1)
                      loss=exp(hazard=0.05)
                      acctime=20 accnobs=360 );
run;

With the specified accrual sample size and accrual time, the "Sample Size Summary" table in Output 103.15.4 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.15.4: Sample Size Summary

The SEQDESIGN Procedure
Design: OBrienFleming

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
AccrualTruncated Exponential with Losses
Scaled Exponential Parameter-0.1
Loss Hazard Rate0.05
Accrual Time20
Follow-up Time9.100306
Total Time29.10031
Max Number of Events89.41803
Max Sample Size360
Expected Sample Size (Null Ref)359.7605
Expected Sample Size (Alt Ref)342.9204
Follow-up Time (Ceiling Time)10
Total Time (Ceiling Time)30


The "Number of Events (D) and Sample Sizes (N)" table in Output 103.15.5 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.15.5: 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.357.7414.6211.4005200.79100.39100.395.588624.468.4815.9812211.67105.83105.836.1162
244.7115.6929.0117.0454304.52152.26152.2611.177348.9717.2331.7518322.36161.18161.1812.2436
367.0623.8143.2521.9812360.00180.00180.0016.765967.1423.8443.3022360.00180.00180.0016.7851
489.4232.3957.0329.1003360.00180.00180.0022.354591.4633.2158.2530360.00180.00180.0022.8649


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

proc seqdesign;
   OBrienFleming: design nstages=4
                  method=obf
                  ;
   samplesize model=twosamplesurvival
                    ( nullhazard=0.03466
                      hazard=0.01733
                      accrual=exp(parm=-0.1)
                      loss=exp(hazard=0.05)
                      acctime=20 accnobs=360
                      ceiling=n);
run;

When you specify CEILING=N, the required sample sizes at the stages are rounded up to integers for additional statistics, and the "Sample Size Summary" table in Output 103.15.6 also displays the accrual time, follow-up time, and maximum sample size that correspond to these ceiling sample sizes.

Output 103.15.6: Sample Size Summary

The SEQDESIGN Procedure
Design: OBrienFleming

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
AccrualTruncated Exponential with Losses
Scaled Exponential Parameter-0.1
Loss Hazard Rate0.05
Accrual Time20
Follow-up Time9.100306
Total Time29.10031
Max Number of Events89.41803
Max Sample Size360
Expected Sample Size (Null Ref)359.7605
Expected Sample Size (Alt Ref)342.9204
Accrual Time (Ceiling N)20
Follow-up Time (Ceiling N)9.100306
Max Sample Size (Ceiling N)360


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

Output 103.15.7: Number of Events and Sample Sizes

Numbers of Events (D) and Sample Sizes (N)
Two-Sample Log-Rank Test
_Stage_Fractional NCeiling N (Matched)
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.357.7414.6211.4005200.79100.39100.395.588622.597.8214.7711.46742021011015.6466
244.7115.6929.0117.0454304.52152.26152.2611.177345.0615.8229.2417.124630615315311.2645
367.0623.8143.2521.9812360.00180.00180.0016.765967.0623.8143.2521.981236018018016.7659
489.4232.3957.0329.1003360.00180.00180.0022.354589.4232.3957.0329.100336018018022.3545