Instructions for SAS v. 9.2

31
Instructions for SAS v. 9.2 Save the programs to a common folder: Make sure to retain (i.e. copy) the “FileFolder” which is required by other programs in order for them to work properly. In the instructions, the FileFolder is “I:\Example”

description

Instructions for SAS v. 9.2. Save the programs to a common folder:. Make sure to retain (i.e. copy) the “FileFolder” which is required by other programs in order for them to work properly. In the instructions, the FileFolder is “I:\Example”. Program Summary - PowerPoint PPT Presentation

Transcript of Instructions for SAS v. 9.2

Page 1: Instructions for SAS v. 9.2

Instructions for SAS v. 9.2Save the programs to a common folder:

Make sure to retain (i.e. copy) the “FileFolder” which is required by other programs in order for them to work properly. In the instructions, the FileFolder is “I:\Example”

Page 2: Instructions for SAS v. 9.2

Program Summary

Alpha Restriction.sas – Searches for critical values using the “alpha restricted method” over 1st and 2nd stage sample sizes with ranges specified by the user.

amacros.sas – contains a set of macros utilized by other programs.

aSummaryStats8.sas – is an algorithm that searches for a design that meets the user’s specifications, looking at average power similar to Chen and Ng (1998), over 8x8=64 accrual combinations.

aSummaryStats8_min.sas – is an algorithm that searches for a design that meets the user’s specifications, requiring user specified minimum power over all accrual combinations.

Dependent.sas – Characterizes the design under the case of associated (correlated) responses (i.e. Xr is not independent of Xs).

The Minimum C.sas – Searches for critical values using the “Minimum C Method.”

SummaryStats8_C.sas – is an algorithm that searches for a design that meets the user’s specifications, based on designs that use The Minimum C Method.

Page 3: Instructions for SAS v. 9.2

(1)

Decide Which Method to Use:

The Alpha Restriction

or

The Minimum C

Page 4: Instructions for SAS v. 9.2

An Example

the Alpha Restriction Method Is

Provided Below:

Page 5: Instructions for SAS v. 9.2

You can enter the values of the parameters directly into the program. Since Greek letters are not accepted by the software, , etc. which are explicitly defined in the program introduction (not shown).

The values of n1L, n1U, nL, and nU should encompass the anticipated sample sizes for stage 1 and 2.

0Pr r

Don’t forget to provide the location of the “FileFolder” where the programs are located.

Alternatively, the user can specify the parameters or change them after the program is run.

Open Alpha Restriction.sas using SAS software:

Page 6: Instructions for SAS v. 9.2

Running the program allows the user to explicitly see the values of the parameters being accepted by the computer (and their definitions).

(1) Press the “Tab” key to move the cursor into and around the window.

(2) Use the arrow keys to move within a specific field. Delete numbers and change values as usual.

(3) When ready to begin computations, press the “Enter/Return” key in the last field (minimum sample size for stage 2).

Page 7: Instructions for SAS v. 9.2

SOME COMPUTATIONAL DETAILS:

The computer will provide an initial printout of all of the combinations of stage 1 (n1) and cumulative stage 2 sample sizes (n).

The total number of accrual combinations can be found on the last row of the Obs column. This will enable the user to approximately gauge the time for computations. In this example, there are 1681 combinations.

Note that the lower bound for n is 50 when n1 is 40 since we desire at least 10 patients in Stage 2.

The SAS log file can help the user see the progress of the computations by printing the size of the dataset OPERCHAR:

NOTE: There were 175 observations read from the data set WORK.OPERCHAR.NOTE: There were 1 observations read from the data set WORK.OPERCHAR0.

The computer should beep when finished. However, for large datasets, the log file can fill up causing computations to stop. If this happens, clear the window without saving. If this becomes annoying, the advanced user can use the “dm ‘log’ clear” option in the macro “cfind_CM2.”

Page 8: Instructions for SAS v. 9.2

When the computer finishes the computations (usually no longer than 5 or 10 minutes), it will printout some of the variables of interest in a dataset called “operchar” which stands for “operating characteristics.” The variable “CM” is defined as:

CM=max(1 – Power Hr, 1 – Power Hs) which is used to help select critical values.

Page 9: Instructions for SAS v. 9.2

Having a large set of sample sizes and rejection boundaries, the user is now ready to narrow the search for a design that meets the desired specifications. There are currently two algorithms available for this purpose when Alpha Restriction.sas is used: (1) aSummaryStats8.sas, and (2) aSummaryStats8_min.sas.

Both programs search through designs with accrual windows of size 8 at each stage (e.g. 21 – 28 Stage 1; 50 – 57 Stage 2). The total number of accrual combinations is 64 (8 possibilities for Stage 1 by 8 possibilities for Stage 2).

aSummaryStats8.sas: First the algorithm finds a design with the smallest lower bound on n(1) that meets the users specification, using the average (mean over 8 possibilities) PET criteria. Then it searches for the smallest lower bound on n so that average power (over all 64 combinations) exceeds the user’s specifications when the alternative hypotheses are true.

aSummaryStats8_min.sas: Is similar except it finds a design with the smallest lower bound on n(1) that meets the users specification, using the minimum value of PET over the 8 possibilities. Then it searches for the smallest lower bound on n so that minimum power (over all 64 combinations) exceeds the user’s specifications when the alternative hypotheses are true.

(2)

Decide on a Searching Algorithm

Page 10: Instructions for SAS v. 9.2

aSummaryStats8.sas

Enter values of desired average PET and average power directly into the program.

Alternatively, run the program and enter the parameters at that time.

Page 11: Instructions for SAS v. 9.2

The determined lower bound on the Stage 1 sample size is 17 since it is the smallest sample size that yields average PET ≥ 50%.

The first stage accrual window is 17 to 24 (8 patients wide).

Output from aSummaryStats8.sas

Page 12: Instructions for SAS v. 9.2

The lower bound in Stage 2 was determined to be 48 (accrual window from 48 to 55) since this is the smallest sample where

average Power Hr ≥ 80%

and

average Power Hs ≥ 80%.

Page 13: Instructions for SAS v. 9.2

A Partial Listing of Critical Values and Individual Operating Characteristics

Page 14: Instructions for SAS v. 9.2

Statistical Summary of Design

As a quality control measure, make sure the total number of accrual combinations is 64. If it is under 64, then the bounds provided by n1L, n1U, nL, or nU may be too restrictive. Also be alert to notices that state that the selected design is at one of these bounds.

The maximum alpha ≤ 5% by design. However, a user may be uncomfortable with a design that has a particular accrual combination with power ≈ 75%.

Page 15: Instructions for SAS v. 9.2

Obtaining Characteristics for the Dependent Case

Since calculating the operating characteristics for the dependent case is a bit time consuming, this data can be obtained by highlighting the code at the end of the program and running separately.

Page 16: Instructions for SAS v. 9.2

Statistical Summary of Design for Dependent Responses

The average power decreases by less than 2%. However, the investigators

may not be satisfied with power ≈ 73% in some circumstances.

Page 17: Instructions for SAS v. 9.2

aSummaryStats8_min.sas

Program looks very similar.

Page 18: Instructions for SAS v. 9.2

The determined lower bound on the Stage 1 sample size is 23 since it is the smallest sample size that yields minimum PET ≥ 50%.

The first stage accrual window is 23 to 30 (8 patients wide).

Page 19: Instructions for SAS v. 9.2

The lower bound in Stage 2 was determined to be 55 (accrual window from 55 to 62) since this is the smallest sample where:

minimum Power Hr ≥ 80%

and

minimum Power Hs ≥ 80%.

Page 20: Instructions for SAS v. 9.2

A Partial Listing of Critical Values and Individual Operating Characteristics

Page 21: Instructions for SAS v. 9.2

Statistical Summary of Design

The accepted design assures power at least 80% for all accrual combinations, but the sample size is increased accordingly.

Page 22: Instructions for SAS v. 9.2

Statistical Summary of Design for Dependent Responses

These numbers drop slightly when the response variables are dependent. If the user is not satisfied, the required power can be increased to 82% to find a design and examined in the dependent case.

Page 23: Instructions for SAS v. 9.2

The Minimum C Method

Program is similar to the “Alpha Restricted Method” except the user does not specify a desired alpha. Currently, the user must enter values directly into the program.

The dataset of prime interest is called “operchar” as before. Once this dataset is obtained, the investigator should use SummaryStats8_C.sas to obtain a satisfactory design.

The program that uses the method of minimizing a C (for Cost function) is similar to Alpha Restriction.sas. The critical values in the second stage are found so that

C = P(Type I error)2 + P(Type II under Hr)2 + P(Type II under Hs)2

is minimized for the various errors of concern (type I and II)

Page 24: Instructions for SAS v. 9.2

SummaryStats8_C.sas

This program requests a desired alpha at this stage.

Page 25: Instructions for SAS v. 9.2
Page 26: Instructions for SAS v. 9.2
Page 27: Instructions for SAS v. 9.2

The operating characteristics are not the same for this design as GOG 229E because the accrual window for this design is wider (8 patients) than it was for GOG 229E (5 patients).

Page 28: Instructions for SAS v. 9.2

Statistical Summary of Design for Dependent Responses

Page 29: Instructions for SAS v. 9.2

Troubleshooting

If you want a demanding design but do not provide a broad enough range of sample sizes for the algorithms to find the desired design (i.e. n1L, n1U, nL, and nU are too narrow), then the algorithms will provide a “best” design from the cases examined, but it will not be adequate.

Assume we want a design that has PET>50% and power >90%

Page 30: Instructions for SAS v. 9.2

A warning should appear in cases where desired power is not attained.

Obtained design is underpowered.

Page 31: Instructions for SAS v. 9.2

The design’s PET is only 39%. Power is close to the desired level.

Use these results to help refine the search.