Sample Size Calculations for a Difference of Means October 11, 2019 - - PowerPoint PPT Presentation

sample size calculations for a difference of means
SMART_READER_LITE
LIVE PREVIEW

Sample Size Calculations for a Difference of Means October 11, 2019 - - PowerPoint PPT Presentation

Sample Size Calculations for a Difference of Means October 11, 2019 October 11, 2019 1 / 15 Computing Power For Two-Sample Tests We have a clinical trial with 100 patients in each group and previous studies to suggest a standard deviation of


slide-1
SLIDE 1

Sample Size Calculations for a Difference of Means

October 11, 2019

October 11, 2019 1 / 15

slide-2
SLIDE 2

Computing Power For Two-Sample Tests

We have a clinical trial with 100 patients in each group and previous studies to suggest a standard deviation of 12. We want to test H0 : µtrt − µctrl = 0 HA : µtrt − µctrl = 0

Section 7.4 October 11, 2019 2 / 15

slide-3
SLIDE 3

Computing Power For Two-Sample Tests

Last class, we found the standard error estimate SE = 1.70. This corresponds to rejecting if ¯ xtrt − ¯ xctrl < −3.33

  • r

¯ xtrt − ¯ xctrl > 3.33

Section 7.4 October 11, 2019 3 / 15

slide-4
SLIDE 4

Computing Power For Two-Sample Tests

Let’s redraw the null and sampling distributions for the case where the truth is µtrt − µctrl = −3

Section 7.4 October 11, 2019 4 / 15

slide-5
SLIDE 5

Determining Sample Size

With a sample size of 100... We can only detect an effect size of 3 mmHg with probability 0.42. This means that the probability of Type II error is 0.58! For drug development, Type II error could cost a company several hundred million dollars.

Section 7.4 October 11, 2019 5 / 15

slide-6
SLIDE 6

Determining Sample Size

It is of interest to determine an appropriate sample size. This will allow us to... be confident that we are detecting any important effects. possibly save money in the long-run. Balance the probability of Type I and Type II error.

Section 7.4 October 11, 2019 6 / 15

slide-7
SLIDE 7

Example

Suppose now that we recruit 500 patients for each group. Determine the new estimate for standard error.

Section 7.4 October 11, 2019 7 / 15

slide-8
SLIDE 8

Example

Suppose now that we recruit 500 patients for each group. Determine the new estimate for standard error. Identify the rejection regions.

Section 7.4 October 11, 2019 7 / 15

slide-9
SLIDE 9

Example

Suppose now that we recruit 500 patients for each group. Determine the new estimate for standard error. Identify the rejection regions. Sketch out the null and alternative distributions when µtrt − µctrl = −3.

Section 7.4 October 11, 2019 7 / 15

slide-10
SLIDE 10

Example

Suppose now that we recruit 500 patients for each group. Determine the new estimate for standard error. Identify the rejection regions. Sketch out the null and alternative distributions when µtrt − µctrl = −3. Compute the probability of accurately rejecting H0.

Section 7.4 October 11, 2019 7 / 15

slide-11
SLIDE 11

Determining Sample Size

We need to find a better balance! We can use sample size to find power (we could try a bunch of different numbers) Or we can flip the problem and use power to find sample size.

We usually use a power around 80% or 90%.

Section 7.4 October 11, 2019 8 / 15

slide-12
SLIDE 12

Example

What sample size do we need to get a power of 80%?

1 Start by assuming normal distribution.

We will make a correction if later we find n < 30.

Section 7.4 October 11, 2019 9 / 15

slide-13
SLIDE 13

Example

What sample size do we need to get a power of 80%?

1 Start by assuming normal distribution.

We will make a correction if later we find n < 30.

2 Determine the minimum effect size you want to be able to detect. Section 7.4 October 11, 2019 9 / 15

slide-14
SLIDE 14

Example

What sample size do we need to get a power of 80%?

1 Start by assuming normal distribution.

We will make a correction if later we find n < 30.

2 Determine the minimum effect size you want to be able to detect. 3 Find the Z-score corresponding to a lower tail of 0.80. Section 7.4 October 11, 2019 9 / 15

slide-15
SLIDE 15

Example

4 Find the number of standard deviations between the centers of the

two distributions.

Section 7.4 October 11, 2019 10 / 15

slide-16
SLIDE 16

Example

The distance between the centers of the two distributions is the minimum effect size of interest.

we set this when we chose µtrt − µctrl = −3.

Let’s try setting this equal to the distance in standard errors.

Can we us this to find n?

Section 7.4 October 11, 2019 11 / 15

slide-17
SLIDE 17

Example

Suppose the targeted power was 90% and we were using α = 0.01.

1 How many standard errors should separate the centers of the null

and alternative distribution?

2 What sample size would we need? Section 7.4 October 11, 2019 12 / 15

slide-18
SLIDE 18

Power Considerations

Targeted power will depend on cost: Cost to patients (risk). Cost of enrolling study participants. Cost of failing to detect an effect of interest. If risk and monetary costs are low it makes sense to increase power even if failing to detect an effect of interest isn’t a big deal.

Section 7.4 October 11, 2019 13 / 15

slide-19
SLIDE 19

Power Considerations

However... there’s often a ceiling!

Section 7.4 October 11, 2019 14 / 15

slide-20
SLIDE 20

Example

A large farm wants to try out a new type of fertilizer to evaluate whether it will improve the farm’s corn production. The land is broken into plots that produce an average of 1215 pounds of corn with a standard deviation of 94 pounds per plot. The owner is interested in detecting any average difference of at least 40 pounds per plot. How many plots of land would be needed for the experiment if the desired power level is 90%? Assume each plot of land gets treated with either the current fertilizer or the new fertilizer.

Section 7.4 October 11, 2019 15 / 15