sample size calculations for a difference of means
play

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


  1. Sample Size Calculations for a Difference of Means October 11, 2019 October 11, 2019 1 / 15

  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 H 0 : µ trt − µ ctrl = 0 H A : µ trt − µ ctrl � = 0 Section 7.4 October 11, 2019 2 / 15

  3. Computing Power For Two-Sample Tests Last class, we found the standard error estimate SE = 1 . 70. This corresponds to rejecting if x trt − ¯ ¯ x ctrl < − 3 . 33 or ¯ x trt − ¯ x ctrl > 3 . 33 Section 7.4 October 11, 2019 3 / 15

  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

  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

  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

  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

  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

  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

  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 H 0 . Section 7.4 October 11, 2019 7 / 15

  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

  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

  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

  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

  15. Example 4 Find the number of standard deviations between the centers of the two distributions. Section 7.4 October 11, 2019 10 / 15

  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

  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

  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

  19. Power Considerations However... there’s often a ceiling! Section 7.4 October 11, 2019 14 / 15

  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

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend