Power and Sample Size Bios 662

Similar documents
E509A: Principle of Biostatistics. GY Zou

Point and Interval Estimation II Bios 662

Power and the computation of sample size

Sample size and power calculation using R and SAS proc power. Ho Kim GSPH, SNU

Analysis of Variance Bios 662

STAT 430 (Fall 2017): Tutorial 2

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings

Topic 19 Extensions on the Likelihood Ratio

Analysis of Variance II Bios 662

Power and sample size calculations

SAMPLING BIOS 662. Michael G. Hudgens, Ph.D. mhudgens :55. BIOS Sampling

Sample Size and Power I: Binary Outcomes. James Ware, PhD Harvard School of Public Health Boston, MA

The t-distribution. Patrick Breheny. October 13. z tests The χ 2 -distribution The t-distribution Summary

Fall 2017 STAT 532 Homework Peter Hoff. 1. Let P be a probability measure on a collection of sets A.

Sample Size/Power Calculation by Software/Online Calculators

HYPOTHESIS TESTING II TESTS ON MEANS. Sorana D. Bolboacă

Power Analysis. Introduction to Power

Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2

a Sample By:Dr.Hoseyn Falahzadeh 1

557: MATHEMATICAL STATISTICS II HYPOTHESIS TESTING: EXAMPLES

SAMPLING II BIOS 662. Michael G. Hudgens, Ph.D. mhudgens :37. BIOS Sampling II

Welcome! Webinar Biostatistics: sample size & power. Thursday, April 26, 12:30 1:30 pm (NDT)

Paired comparisons. We assume that

The t-test Pivots Summary. Pivots and t-tests. Patrick Breheny. October 15. Patrick Breheny Biostatistical Methods I (BIOS 5710) 1/18

Economics 583: Econometric Theory I A Primer on Asymptotics: Hypothesis Testing

Inference for Binomial Parameters

Factorial Analysis of Variance

Sampling Distribution: Week 6

HYPOTHESIS TESTING. Hypothesis Testing

PubH 5450 Biostatistics I Prof. Carlin. Lecture 13

Discrete Multivariate Statistics

Power. January 12, 2019

Answer Key for STAT 200B HW No. 7

Chapter 8 of Devore , H 1 :

Basic Statistics and Probability Chapter 9: Inferences Based on Two Samples: Confidence Intervals and Tests of Hypotheses

7 Estimation. 7.1 Population and Sample (P.91-92)

Hypothesis Testing, Power, Sample Size and Confidence Intervals (Part 2)

Sample Size Estimation for Studies of High-Dimensional Data

Comparison of Two Population Means

BIOS 312: Precision of Statistical Inference

POWER FOR COMPARING TWO PROPORTIONS WITH INDEPENDENT SAMPLES

COMPARING GROUPS PART 1CONTINUOUS DATA

Regression techniques provide statistical analysis of relationships. Research designs may be classified as experimental or observational; regression

Two Sample Problems. Two sample problems

Statistics for Business and Economics

Two-sample t-tests. - Independent samples - Pooled standard devation - The equal variance assumption

Epidemiology Principles of Biostatistics Chapter 10 - Inferences about two populations. John Koval

CSE 103 Homework 8: Solutions November 30, var(x) = np(1 p) = P r( X ) 0.95 P r( X ) 0.

High-Throughput Sequencing Course

Probability and Probability Distributions. Dr. Mohammed Alahmed

Tests for Population Proportion(s)

Power of a test. Hypothesis testing

Lecture 01: Introduction

Logistic Regression. Interpretation of linear regression. Other types of outcomes. 0-1 response variable: Wound infection. Usual linear regression

10: Crosstabs & Independent Proportions

On Assumptions. On Assumptions

Epidemiology Principle of Biostatistics Chapter 14 - Dependent Samples and effect measures. John Koval

Statistics 135 Fall 2008 Final Exam

1 Statistical inference for a population mean

Sections 3.4 and 3.5

Mathematical statistics

STA 303H1F: Two-way Analysis of Variance Practice Problems

Two-stage Adaptive Randomization for Delayed Response in Clinical Trials

Power and sample size calculations

Sociology 6Z03 Review II

Chapter 5 Formulas Distribution Formula Characteristics n. π is the probability Function. x trial and n is the. where x = 0, 1, 2, number of trials

Contents 1. Contents

Class 24. Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science. Marquette University MATH 1700

T-tests for 2 Independent Means

T-tests for 2 Independent Means

Power and sample size calculations

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

Factorial Analysis of Variance

Continuous Probability Distributions

STAT 513 fa 2018 Lec 02

CHAPTER 8. Test Procedures is a rule, based on sample data, for deciding whether to reject H 0 and contains:

Lecture 9. ANOVA: Random-effects model, sample size

Solution: First note that the power function of the test is given as follows,

Sample Size / Power Calculations

Statistics in medicine

Asymptotic Statistics-VI. Changliang Zou

INTERVAL ESTIMATION AND HYPOTHESES TESTING

1; (f) H 0 : = 55 db, H 1 : < 55.

General Linear Model (Chapter 4)

(a) (3 points) Construct a 95% confidence interval for β 2 in Equation 1.

Hypothesis Testing. ECE 3530 Spring Antonio Paiva

SAMPLING III BIOS 662

Fundamentals to Biostatistics. Prof. Chandan Chakraborty Associate Professor School of Medical Science & Technology IIT Kharagpur

SCHOOL OF MATHEMATICS AND STATISTICS. Linear and Generalised Linear Models

Statistical inference (estimation, hypothesis tests, confidence intervals) Oct 2018

Multivariate Statistical Analysis

Tests for Two Correlated Proportions in a Matched Case- Control Design

Comparing two independent samples

" M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2

Chapter Six: Two Independent Samples Methods 1/51

Sampling Distributions: Central Limit Theorem

ph: 5.2, 5.6, 5.8, 6.4, 6.5, 6.8, 6.9, 7.2, 7.5 sample mean = sample sd = sample size, n = 9

One-sample categorical data: approximate inference

Statistics Boot Camp. Dr. Stephanie Lane Institute for Defense Analyses DATAWorks 2018

Using SAS Proc Power to Perform Model-based Power Analysis for Clinical Pharmacology Studies Peng Sun, Merck & Co., Inc.

Transcription:

Power and Sample Size Bios 662 Michael G. Hudgens, Ph.D. mhudgens@bios.unc.edu http://www.bios.unc.edu/ mhudgens 2008-10-31 14:06 BIOS 662 1 Power and Sample Size

Outline Introduction One sample: continuous outcome, Z test continuous outcome, t test binary outcome, Z test binary outcome, exact test BIOS 662 2 Power and Sample Size

Introduction Read Chs 5.8 and 6.3.3. of text In a test of a hypothesis, we are testing whether some population parameter has a particular value H 0 : θ = θ 0, where θ 0 is a known constant Generally, H A : θ θ 0 BIOS 662 3 Power and Sample Size

Introduction Once the data are collected, we will compute a statistic related to θ, say S(ˆθ) S(ˆθ) is a random variable, since it is computed from a sample (and hence it has a probability distribution) BIOS 662 4 Power and Sample Size

Power Pr[Type I error] = α = Pr[S(ˆθ) C α H 0 ] Pr[Type II error] = β = Pr[S(ˆθ) / C α H A ] P ower = 1 β = Pr[S(ˆθ) C α H A ] BIOS 662 5 Power and Sample Size

One sample Z test Example: One sample test Study: collect data on continuous outcome (Y ) on N individuals E(Y ) = µ, V (Y ) = σ 2 H 0 : µ = µ 0 vs H A : µ > µ 0 S(ˆθ) = Z = Ȳ µ 0 σ/ N BIOS 662 6 Power and Sample Size

One sample Z test Pr[S(ˆθ) C α H 0 ] = Pr[Z > z 1 α H 0 ] = α Pr[S(ˆθ) C α H A ] = Pr[Z > z 1 α H A ] = 1 β Choose a value µ A H A Q: what sample size do we need to detect this alternative with 1 β power? BIOS 662 7 Power and Sample Size

One sample Z test Under H A : µ = µ A Note Thus Z = Y µ A σ/ N N(0, 1) Z + µ A µ 0 σ/ N = Y µ 0 σ/ N = Z Z N ( ) µ A µ 0 σ/ N, 1 BIOS 662 8 Power and Sample Size

Distribution of Z-statistic under H 0 and H A Density 0.0 0.1 0.2 0.3 0.4 H 0 :µ=µ 0 H A :µ=µ 0 +3σ N Pr(Z>1.65 Ha) Pr(Z>1.65 Ho) 2 0 2 4 6 8 Z BIOS 662 9 Power and Sample Size

Power is given by One sample Z test 1 β = Pr[Z > z 1 α µ = µ A ] Therefore = Pr[Z > z 1 α + z 1 α + N(µ0 µ A ) σ N(µ0 µ A ) σ µ = µ A ] = z β = z 1 β BIOS 662 10 Power and Sample Size

Equivalently For a two sided test One sample Z test N = σ2 (z 1 α + z 1 β ) 2 (µ 0 µ A ) 2 N = σ2 (z 1 α/2 + z 1 β ) 2 (µ 0 µ A ) 2 BIOS 662 11 Power and Sample Size

Equivalent form One sample Z test N = ( z1 α/2 + z 1 β ) 2 where = µ 0 µ A σ is called the standardized distance or difference BIOS 662 12 Power and Sample Size

One sample Z test To apply this formula, we need to know α, β, µ 0 µ A, and σ 2 Example: a study to determine the effect of a drug on blood pressure. BP measured, drug administered, and BP measured 2 hours later Y = (BP after BP before ) H 0 : µ = 0 vs H A : µ 0 BIOS 662 13 Power and Sample Size

One sample Z test Choose α = 0.05, 1 β = 0.9 Estimate of σ 2 : need data from literature or pilot study; note we need variance of difference after-before The choice of µ A is a subject matter decision. In example: a drug that changes BP only 1 mmhg would not be of practical importance, but a drug that changes BP 5 mmhg might be of interest BIOS 662 14 Power and Sample Size

One sample Z test Suppose α = 0.05, 1 β =.9, σ 2 = 225, and µ A = 5 225(1.96 + 1.28)2 N = 5 2 = 94.5 95 Often compute N for various different values of α, β, σ 2, and µ A Note (1.96 + 1.28) 2 10.5, so that N 10.5 2 BIOS 662 15 Power and Sample Size

One sample Z test α 1 β σ 2 µ A N α 1 β σ 2 µ A N 0.05 0.90 225 5 95 0.01 0.90 225 5 133 225 6 66 225 6 93 256 5 108 256 5 151 256 6 75 256 6 105 0.05 0.80 225 5 71 0.01 0.80 225 5 105 225 6 49 225 6 73 256 5 81 256 5 119 256 6 56 256 6 83 BIOS 662 16 Power and Sample Size

One sample Z test α N 1 β N σ 2 N µ 0 µ A N BIOS 662 17 Power and Sample Size

One sample Z test Sometimes N is fixed and we estimate the power of the test N = σ2 (z 1 α/2 + z 1 β ) 2 (µ 0 µ A ) 2 z 1 β = µ 0 µ A N z σ 1 α/2 { µ 1 β = Φ 0 µ A } N z σ 1 α/2 BIOS 662 18 Power and Sample Size

One sample Z test Investigator says there are only 50 patients, α =.05, σ 2 = 225, µ 0 µ A = 5 z 1 β = 5 50 15 1.96 = 0.40 1 β = 0.6554 BIOS 662 19 Power and Sample Size

One sample t test In practice, σ is not know, so we use a t test instead of a Z test Results above should be viewed as approximations in this case Power of t test is as follows BIOS 662 20 Power and Sample Size

One sample t test Need the following result: if U N(λ, 1) and V χ 2 ν where U V, then U V/ν t ν,λ i.e., a non-central t distribution with df ν and noncentrality parameter λ BIOS 662 21 Power and Sample Size

One sample t test Consider H 0 : µ = 0 versus H A : µ = µ A for µ A 0 Under H A, Thus Recall Y N(µ A, σ 2 /N) Y N σ (N 1)s 2 σ 2 N(µ A N σ, 1) χ 2 N 1 BIOS 662 22 Power and Sample Size

Since Y s 2, One sample t test T = where λ = µ A N/σ Y s/ N t N 1,λ So power of two-sided t-test for µ A > 0 where T t N 1,µA N/σ Pr[T t N 1,0;1 α/2 ] BIOS 662 23 Power and Sample Size

One sample t test: R # by hand > 1-pt(qt(.975,49), 49, 5/15*sqrt(50)) [1] 0.6370846 > power.t.test(n=50, sd=15, delta=5, type="one.sample") One-sample t test power calculation n = 50 delta = 5 sd = 15 sig.level = 0.05 power = 0.6370846 alternative = two.sided BIOS 662 24 Power and Sample Size

proc power; onesamplemeans mean = 5 ntotal = 50 stddev = 15 power =.; run; One sample t test: SAS The POWER Procedure One-sample t Test for Mean Fixed Scenario Elements Distribution Normal Method Exact Mean 5 Standard Deviation 15 Total Sample Size 50 Number of Sides 2 Null Mean 0 Alpha 0.05 Computed Power Power 0.637 BIOS 662 25 Power and Sample Size

Null hypothesis One sample Z test: Binary Outcome H 0 : π = π 0 Test statistic Z = ˆp π 0 π0 (1 π 0 )/N Sample size formula ( z 1 α/2 π0 (1 π 0 ) + z 1 β πa (1 π A ) N = (π A π 0 ) 2 ) 2 BIOS 662 26 Power and Sample Size

One sample Z test: Binary Outcome Example: Study of risk of breast cancer in sibs. Prevalence in general population of women 50-54 years old: 2% Sample sisters of women with breast cancer H 0 : π = 0.02 vs H A : π.02 BIOS 662 27 Power and Sample Size

One sample Z test: Binary Outcome Suppose α =.05, 1 β =.9, π A =.05 Then N = ( 1.96.02(.98) + 1.28 ) 2.05(.95) (.05.02) 2 = 340.65 341 BIOS 662 28 Power and Sample Size

One sample Z test with binary outcome: SAS proc power; onesamplefreq test = z method = normal nullp =.02 p =.05 power =.9 ntotal =.; run; The POWER Procedure Z Test for Binomial Proportion Fixed Scenario Elements Method Normal approximation Null Proportion 0.02 Binomial Proportion 0.05 Nominal Power 0.9 Number of Sides 2 Alpha 0.05 Actual N Power Total 0.900 341 BIOS 662 29 Power and Sample Size

One sample exact test: binary outcome What is power of exact test? Let Y, the number of successes, be test statistic. Under H 0, Y Binomial(N, π 0 ) Under H A, Y Binomial(N, π A ) Power Pr[Y y 1 α/2 π = π A ] + Pr[Y y α/2 π = π A ] where y α/2 and y 1 α/2 determined as in Counting Data slides BIOS 662 30 Power and Sample Size

One sample exact test: binary outcome Exact example. Suppose N = 20, π 0 =.2, π A =.5, α = 0.05. What is exact power of two-sided test? Based on CDF of Binomial(20,.2), choose y α/2 = 0 and y 1 α/2 = 9 such that power equals Pr[Y 9 π =.5] + Pr[Y 0 π =.5] = 0.748 BIOS 662 31 Power and Sample Size

One sample exact test, binary outcome: SAS proc power; onesamplefreq test = exact method = exact nullp =.2 p =.5 power =. ntotal = 20; run; Computed Power Lower Upper Crit Crit Actual Val Val Alpha Power 0 9 0.0215 0.748 BIOS 662 32 Power and Sample Size