Power and Sample Size Analysis Using...

22
Power and Sample Size Analysis Using SAS

Transcript of Power and Sample Size Analysis Using...

Page 1: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

Power and Sample Size Analysis Using SAS

Page 2: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

2

Probabilities of Outcomes of Hypothesis Testing

2

“Truth”

DecisionH0: No Difference HA: Difference

H0: No DifferencePr(Correct Negative) =

(1 – α)Pr(False Positive) =Pr(Type I error) = α

HA: DifferencePr(False Negative) =Pr(Type II error) = β

Pr(Correct Positive) = (1 – β) = Power

Page 3: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

3

Power AnalysisStatistical power analysis characterizes the ability of a statistical test to detect effects.Power can be computed for more than one scenario at a time by varying the parameters that affect power.During the planning phase of the study, statistical power analysis enables researchers to increase the efficiency of the study design and analysis.

3

Page 4: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

4

Sensitivity AnalysisA sensitivity analysis is when you vary some combination of parameters to see how it affects power.An example is to fix alpha and the study design, and to vary the sample size, standard deviation, and surmised pattern of mean differences.The results of the analysis can assist the researcher in planning a study.

4

Page 5: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

5

Sensitivity Analysis

5

Std Dev, Mean Diff0.5, 0.61.0, 0.6 0.5, 0.81.0, 0.8

Power

00.10.2

1.0

0.80.9

0.70.60.50.40.3

Sample Size

0 10020 40 60 80

Page 6: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

6

Concrete Study

Brand

Graystone

EZMix

6

Page 7: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

7

Parameters for Concrete Study

Statistical Method = two-sample t-test with equal variancesMean Difference = 400 to 500 by 50Standard Deviation = 300 400Sides = two-sided testRatio of Group Sample Sizes = 1:1 1:2 1:3Power = 0.90Alpha = 0.05

7

Page 8: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

8

Performing Power and Sample Size Analyses for a Two-Sample t-Test

This demonstration illustrates how to compute a power and sample size analysis for a two-sample t-test.

8

Page 9: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

9

Aspirin and Heart Attack StudyStudy Objective: examine the effect of low-dose aspirin on reducing the risk of death due to heart attacks.

Study Design: randomly assign patients to aspirin treatment and placebo treatment and follow the groups for three years.

Outcome: proportion of deaths due to myocardial infarction.

9

Page 10: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

10

Parameters for Aspirin and Heart Attack Study

Statistical Method = likelihood-ratio chi-square testReference Proportion = 0.04Relative Risk = 0.3 0.4 0.5 0.6Ratio of Group Sample Sizes = 1:1 1:2 1:3Sides = 1Power = 0.90Alpha = 0.01

10

Page 11: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

11

Power and Sample Size Analyses for the Test of Two Independent Proportions

This demonstration illustrates how to compute a power and sample size analysis for a test of two independent proportions.

11

Page 12: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

12

Nosocomial Infection StudyObjective: determine whether infection

surveillance and control programs reduce the rates of nosocomial (hospital-acquired) infection

Response Variable:

percentage of patients that acquired infection in the hospital

Predictors: 6 covariates

12

Page 13: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

13

Parameters for Nosocomial StudyStatistical Method = Type III F-tests in multiple linear regressionType of Model = unconditional with random predictorsNumber of Predictors in Full Model = 6Number of Predictors being tested = 1Partial correlation for Services = 0.20 0.25 0.30Power = 0.80 0.85 0.90Alpha = 0.01

13

Page 14: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

14

Performing Power and Sample Size Analyses for Multiple Linear Regression

This demonstration illustrates how to compute a power and sample size analysis for multiple linear regression.

14

Page 15: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

15

The GLMPOWER ProcedureThe GLMPOWER procedure performs prospective power analysis for general linear models. The procedure supports:

Type III tests and contrasts of fixed class effectscontinuous and categorical covariatesunbalanced designscustomized graphics.

15

Page 16: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

16

GLMPOWER Procedure

16

PROC GLMPOWER <options>;CLASS variables;MODEL dependent-variables = classification-effects;WEIGHT variable;CONTRAST ‘label’ effect values<…effect values>

</options>;POWER <options>;PLOT <plot-options></graph-options>;

RUN;

Page 17: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

17

Exemplary Data SetPROC GLMPOWER requires an exemplary data set for the input of some parameters. The parameters include the following:

the conjectured response means in the underlying populationthe design weights for an unbalanced design additional response means to simulate multiple scenarios.

17

Page 18: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

18

Tire StudyObjective: Compare the wear of four brands of

tires.

Response Variable:

Amount of wear in millimeters over 1,000 miles

Predictor: Brand of tire (A, B, C, D)

18

Page 19: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

19

Parameters for Tire StudyStatistical Method = one-degree-of-freedom test of a contrast of means Study Design = Balanced DesignGroup Means = 2.50 | 2.72 | 2.30 | 2.24Cell Weights = 1.20 | 1.10 | 1.00 | 1.30Error Standard Deviation = 0.32 Power = 0.80Alpha = 0.01

19

Page 20: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

20

Performing Power and Sample Size Analyses Using PROC GLMPOWER

This demonstration illustrates how to compute a power and sample size analysis in PROC GLMPOWER.

20

Page 21: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

21

Logistic RegressionPROC POWER performs power and sample size analyses for the likelihood ratio chi-square test of a single predictor in binary logistic regression, possibly in the presence of one or more covariates.All predictor variables are assumed to be independent of each other.The distributions of the predictor variables must be specified along with the parameters.You can express effects in terms of response probability and odds ratios, or in terms of regression coefficients.

21

Page 22: Power and Sample Size Analysis Using SAScollaboratory.ucr.edu/files/power_sample_presentation.pdfStatistical power analysis characterizes the ability of a ... An example is to fix

22

Performing Power and Sample Size Analyses for Multiple Logistic Regression

This demonstration illustrates how to compute a power and sample size analysis for multiple logistic regression.

22