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.

Slides:



Advertisements
Similar presentations
Tests of Hypotheses Based on a Single Sample
Advertisements

Inpainting Assigment – Tips and Hints Outline how to design a good test plan selection of dimensions to test along selection of values for each dimension.
1 Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Type I and Type II Errors One-Tailed Tests About a Population Mean: Large-Sample.
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses Type I and Type II Errors Type I and Type II Errors.
1 1 Slide STATISTICS FOR BUSINESS AND ECONOMICS Seventh Edition AndersonSweeneyWilliams Slides Prepared by John Loucks © 1999 ITP/South-Western College.
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Scheduling Requests and Request Reports Presented by: Sara Sayasane Presented by:
Statistical Techniques I EXST7005 Lets go Power and Types of Errors.
Regression Analysis Using Excel. Econometrics Econometrics is simply the statistical analysis of economic phenomena Here, we just summarize some of the.
1 1 Slide Hypothesis Testing Chapter 9 BA Slide Hypothesis Testing The null hypothesis, denoted by H 0, is a tentative assumption about a population.
Introduction to Hypothesis Testing
Detecting univariate outliers Detecting multivariate outliers
Chapter 12 Simple Regression
Software Quality Control Methods. Introduction Quality control methods have received a world wide surge of interest within the past couple of decades.
Pengujian Hipotesis Nilai Tengah Pertemuan 19 Matakuliah: I0134/Metode Statistika Tahun: 2007.
Probability & Statistics for Engineers & Scientists, by Walpole, Myers, Myers & Ye ~ Chapter 10 Notes Class notes for ISE 201 San Jose State University.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
The Analysis of Variance
Inferences About Process Quality
Setting Up the INVENTORY & SERVICES Module Slideshow 8 A.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 Introduction to Hypothesis Testing.
Using Task Manager to Work EDI/ERA Posting Lori Phillips CHUG at Centricity Live April 29 – May 2,2015.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
Business Statistics - QBM117 Introduction to hypothesis testing.
1 Dr. Jerrell T. Stracener EMIS 7370 STAT 5340 Probability and Statistics for Scientists and Engineers Department of Engineering Management, Information.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 9 Introduction to Hypothesis Testing.
Descriptive statistics Inferential statistics
Introduction to Statistical Inferences
Introducing... NPF Connect Press [Space Bar] to continue...
Lecture 12 Statistical Inference (Estimation) Point and Interval estimation By Aziza Munir.
1 1 Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University © 2002 South-Western/Thomson Learning.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 Introduction to Hypothesis Testing. 2 What is a Hypothesis? A hypothesis is a claim A hypothesis is a claim (assumption) about a population parameter:
1 Hypothesis testing can be used to determine whether Hypothesis testing can be used to determine whether a statement about the value of a population parameter.
Lecture 7 Introduction to Hypothesis Testing. Lecture Goals After completing this lecture, you should be able to: Formulate null and alternative hypotheses.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
1 1 Slide © 2003 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  The course describes the performance analysis and profiling tools.
Chapter 17 Creating a Database.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Chap 8-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 8 Introduction to Hypothesis.
XP. Objectives Sort data and filter data Summarize an Excel table Insert subtotals into a range of data Outline buttons to show or hide details Create.
11/16/2015Slide 1 We will use a two-sample test of proportions to test whether or not there are group differences in the proportions of cases that have.
Chapter 10 Verification and Validation of Simulation Models
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
QC THE MULTIRULE INTERPRETATION
Validating Data Entry The major issue in creating and using data bases, including Excel lists, is to assure that the information stored in the data base.
Premium 2011 Setting Up the INVENTORY & SERVICES Module.
AP Statistics Section 11.1 B More on Significance Tests.
SW388R7 Data Analysis & Computers II Slide 1 Detecting Outliers Detecting univariate outliers Detecting multivariate outliers.
Statistical Techniques
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Task Dialogs 3.2 Creating a Listing Report 3.3 Creating a Frequency Report 3.4 Creating a Two-Way.
Working Efficiently with Large SAS® Datasets Vishal Jain Senior Programmer.
Dynamic Black-Box Testing Part 1 What is dynamic black-box testing? How to reduce the number of test cases using: Equivalence partitioning Boundary value.
Critical Appraisal Course for Emergency Medicine Trainees Module 2 Statistics.
Slides by JOHN LOUCKS St. Edward’s University.
Hypotheses and test procedures
Chapter 13 Solver .out File and CCL
i) Two way ANOVA without replication
Chapter 10 Verification and Validation of Simulation Models
Chapter 7 Sampling Distributions.
Lesson Comparing Two Means.
Chapter 7 Sampling Distributions.
Using the Online Compare Tool
Chapter 7 Sampling Distributions.
Chapter 7 Sampling Distributions.
Presentation transcript:

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 Alpha Restriction.sas – Searches for critical values using the “alpha restricted method” over 1 st and 2 nd 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.

(1) Decide Which Method to Use: The Alpha Restriction or The Minimum C

An Example the Alpha Restriction Method Is Provided Below:

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. 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:

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).

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.”

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.

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

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.

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

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%.

A Partial Listing of Critical Values and Individual Operating Characteristics

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%.

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.

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.

aSummaryStats8_min.sas Program looks very similar.

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).

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%.

A Partial Listing of Critical Values and Individual Operating Characteristics

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

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.

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)

SummaryStats8_C.sas This program requests a desired alpha at this stage.

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).

Statistical Summary of Design for Dependent Responses

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%

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

The design’s PET is only 39%. Power is close to the desired level. Use these results to help refine the search.