The SEQDESIGN Procedure

Example 104.12 Creating a Two-Sided Asymmetric Error Spending Design with Early Stopping to Reject or Accept

(View the complete code for this example.)

This example requests a four-stage two-sided asymmetric group sequential design for normally distributed statistics. The O’Brien-Fleming boundary can be approximated by a gamma family error spending function with parameter or –5, and the Pocock boundary can be approximated with parameter (Hwang, Shih, and DeCani 1990, p. 1440). The following statements use the gamma error spending function with early stopping to reject or accept the null hypothesis :

ods graphics on;
proc seqdesign altref=2
               pss(cref=0 0.5 1)
               stopprob(cref=0 1)
               errspend
               plots=(asn power errspend)
               ;
TwoSidedAsymmetric: design nstages=4
                    method=errfuncgamma(gamma=1)
                    method(beta)=errfuncgamma(gamma=-2)
                    method(upperalpha)=errfuncgamma(gamma=-5)
                    alt=twosided
                    stop=both
                    beta=0.1
                    ;
run;

The design uses gamma family error spending functions with for the upper boundary, for the lower boundary, and for the lower and upper boundaries.

The "Design Information" table in Output 104.12.1 displays design specifications and the derived maximum information. Note that in order to attain the same information level for the asymmetric lower and upper boundaries, the derived power at the upper alternative 0.93655 is larger than the specified .

Output 104.12.1: Design Information

The SEQDESIGN Procedure
Design: TwoSidedAsymmetric

Design Information
Statistic DistributionNormal
Boundary ScaleStandardized Z
Alternative HypothesisTwo-Sided
Early StopAccept/Reject Null
MethodError Spending
Boundary KeyBoth
Alternative Reference2
Number of Stages4
Alpha0.05
Beta (Lower)0.1
Beta (Upper)0.06345
Power (Lower)0.9
Power (Upper)0.93655
Max Information (Percent of Fixed Sample)104.0688
Max Information3.162386
Null Ref ASN (Percent of Fixed Sample)74.16654
Lower Alt Ref ASN (Percent of Fixed Sample)59.10271
Upper Alt Ref ASN (Percent of Fixed Sample)73.78797


The "Method Information" table in Output 104.11.2 displays the specified and error levels and the derived drift parameter. With the same information level used for the asymmetric lower and upper boundaries, only one of the levels is maintained and the other is derived to have the level less than or equal to the specified level.

Output 104.12.2: Method Information

Method Information
BoundaryMethodAlphaBetaError SpendingAlternative
Reference
Drift
Function
Upper AlphaError Spending0.02500.Gamma (Gamma=-5)23.55662
Upper BetaError Spending.0.06345Gamma (Gamma=-2)23.55662
Lower BetaError Spending.0.10000Gamma (Gamma=-2)-2-3.55662
Lower AlphaError Spending0.02500.Gamma (Gamma=1)-2-3.55662


With the STOPPROB(CREF=0 1) option, the "Expected Cumulative Stopping Probabilities" table in Output 104.12.3 displays the expected stopping stage and cumulative stopping probabilities at each stage under the null reference and under the alternative reference .

Output 104.12.3: Stopping Probabilities

Expected Cumulative Stopping Probabilities
Reference = CRef * (Alt Reference)
CRefRefExpected
Stopping Stage
SourceStopping Probabilities
Stage_1Stage_2Stage_3Stage_4
0.0000Lower Alt2.851Rej Null (Lower Alt)0.008750.015560.020870.02500
0.0000Lower Alt2.851Rej Null (Upper Alt)0.000420.001900.007040.02500
0.0000Lower Alt2.851Reject Null0.009170.017460.027910.05000
0.0000Lower Alt2.851Accept Null0.000000.301250.793540.95000
0.0000Lower Alt2.851Total0.009170.318700.821451.00000
1.0000Lower Alt2.272Rej Null (Lower Alt)0.274990.589340.796010.90000
1.0000Lower Alt2.272Rej Null (Upper Alt)0.000000.000000.000000.00000
1.0000Lower Alt2.272Reject Null0.274990.589340.796010.90000
1.0000Lower Alt2.272Accept Null0.000000.018630.049350.10000
1.0000Lower Alt2.272Total0.274990.607970.845361.00000
0.0000Upper Alt2.851Rej Null (Lower Alt)0.008750.015560.020870.02500
0.0000Upper Alt2.851Rej Null (Upper Alt)0.000420.001900.007040.02500
0.0000Upper Alt2.851Reject Null0.009170.017460.027910.05000
0.0000Upper Alt2.851Accept Null0.000000.301250.793540.95000
0.0000Upper Alt2.851Total0.009170.318700.821451.00000
1.0000Upper Alt2.836Rej Null (Lower Alt)0.000020.000020.000020.00002
1.0000Upper Alt2.836Rej Null (Upper Alt)0.059450.338020.723230.93655
1.0000Upper Alt2.836Reject Null0.059470.338040.723250.93657
1.0000Upper Alt2.836Accept Null0.000000.011820.031310.06343
1.0000Upper Alt2.836Total0.059470.349860.754561.00000


"Rej Null (Lower Alt)" and "Rej Null (Upper Alt)" under the heading "Source" indicate the probabilities of rejecting the null hypothesis for the lower alternative and for the upper alternative, respectively. "Reject Null" indicates the probability of rejecting the null hypothesis for either the lower or upper alternative, "Accept Null" indicates the probability of accepting the null hypothesis, and "Total" indicates the total probability of stopping the trial.

With the PSS(CREF=0 0.5 1.0) option, the "Power and Expected Sample Sizes" table in Output 104.12.4 displays powers and expected sample sizes under hypothetical references (null hypothesis ), , and (alternative hypothesis ), where is the alternative reference. The expected sample sizes are displayed in a scale that indicates a percentage of its corresponding fixed-sample size design.

Output 104.12.4: Power and Expected Sample Size Information

Powers and Expected Sample Sizes
Reference = CRef * (Alt Reference)
CRefRefPowerSample Size
Percent
Fixed-Sample
0.0000Lower Alt0.0250074.1665
0.5000Lower Alt0.3460175.8425
1.0000Lower Alt0.9000059.1027
0.0000Upper Alt0.0250074.1665
0.5000Upper Alt0.4164785.3976
1.0000Upper Alt0.9365573.7880


Note that at , the null reference , the power with the lower alternative is the lower error 0.025, and the power with the upper alternative is the upper error 0.025. At , the alternative reference , the power with the lower alternative is the specified power 0.90, and the power with the upper alternative 0.93655 is greater than the specified power 0.90 because the same information level is used for these two asymmetric boundaries.

With the PLOTS=POWER option, the procedure displays a plot of the power curves under various hypothetical references, as shown in Output 104.12.5. By default, powers under the lower hypotheses and under the upper hypotheses , are displayed for a two-sided asymmetric design, where and and are the lower and upper alternative references, respectively.

Output 104.12.5: Power Plot

Power Plot


The horizontal axis displays the multiplier of the reference difference. A positive multiplier corresponds to for the upper alternative hypothesis, and a negative multiplier corresponds to for the lower alternative hypothesis. For lower reference hypotheses, the power is the lower error 0.025 under the null hypothesis () and is 0.90 under the alternative hypothesis (). For upper reference hypotheses, the power is the upper error 0.025 under the null hypothesis () and is 0.93655 under the alternative hypothesis ().

With the PLOTS=ASN option, the procedure displays a plot of expected sample sizes under various hypothetical references, as shown in Output 104.12.6. By default, expected sample sizes under the lower hypotheses and under the upper hypotheses are displayed for a two-sided asymmetric design, where and and are the lower and upper alternative references, respectively.

Output 104.12.6: ASN Plot

ASN Plot


The horizontal axis displays the multiplier of the reference difference. A positive multiplier corresponds to for the upper alternative hypothesis, and a negative multiplier corresponds to for the lower alternative hypothesis.

By default (or equivalently if you specify BETAOVERLAP=ADJUST), the SEQDESIGN procedure first derives boundary values without adjusting for the possible overlapping of the two one-sided boundaries based on two corresponding one-sided tests. Then the procedure checks for overlapping of the boundaries at the interim stages. Since the two boundaries overlap at stage 1, the boundary values for stage 1 are set to missing, the spending values at stage 1 are set to zero, and the spending values at subsequent stages are adjusted proportionally.

The "Boundary Information" table in Output 104.12.7 displays the information levels, alternative references, and boundary values. By default (or equivalently if you specify BOUNDARYSCALE=STDZ), the standardized Z scale is used to display the alternative references and boundary values. The resulting standardized alternative references at stage k is given by , where is the specified alternative reference and is the information level at stage k, .

Output 104.12.7: Boundary Information

Boundary Information (Standardized Z Scale)
Null Reference = 0
_Stage_ AlternativeBoundary Values
Information LevelReferenceLowerUpper
ProportionActualLowerUpperAlphaBetaBetaAlpha
10.25000.790597-1.778311.77831-2.37610..3.33772
20.50001.581193-2.514912.51491-2.35714-0.484080.294002.94871
30.75002.37179-3.080123.08012-2.34861-1.361831.138982.50473
41.00003.162386-3.556623.55662-2.32105-2.321051.956751.95675


With ODS Graphics enabled, a detailed boundary plot with the rejection and acceptance regions is displayed, as shown in Output 104.12.8.

Output 104.12.8: Boundary Plot

Boundary Plot


The "Error Spending Information" in Output 104.12.9 displays the cumulative error spending at each stage for each boundary.

Output 104.12.9: Error Spending Information

Error Spending Information
_Stage_Information
Level
Cumulative Error Spending
LowerUpper
ProportionAlphaBetaBetaAlpha
10.25000.008750.000000.000020.00042
20.50000.015560.018630.011840.00190
30.75000.020870.049350.031320.00704
41.00000.025000.100000.063450.02500


With the boundary values missing at stage 1, there is no early stopping to accept at stage 1, and the corresponding spending at stage 1 is computed from the rejection region. For example, the upper spending at stage 1 (0.00002) is the probability of rejecting for the lower alternative under the upper alternative reference.

With the PLOTS=ERRSPEND option, the procedure displays a plot of the cumulative error spending on each boundary at each stage, as shown in Output 104.12.10.

Output 104.12.10: Error Spending Plot

Error Spending Plot


Last updated: February 13, 2019