sample determinants and size

46
Sample determinants and sample size Dr Tarek Tawfik Amin Public Health Department, Cairo University [email protected]

Upload: tarek-tawfik-amin

Post on 05-Dec-2014

823 views

Category:

Health & Medicine


4 download

DESCRIPTION

Sample size, effect size, Type I, II errors, rule of thumb

TRANSCRIPT

Page 1: Sample determinants and size

Sample determinants and sample size

Dr Tarek Tawfik AminPublic Health Department, Cairo University

[email protected]

Page 2: Sample determinants and size

Objectives

By the end of this session, attendants should be able to:

1) Recognize the importance of proper sample size.

2) Identify the essential components for sample size calculation for clinical and epidemiological researches.

3) Practically employ different software to calculate sample size for different scenarios.

Page 3: Sample determinants and size

Sample Size Determination

Page 4: Sample determinants and size

Why it is important?

• Integral part of quantitative research.• Ensuring validity, accuracy,

reliability, scientific and ethical integrity of research.

Page 5: Sample determinants and size

Considerations in sample size calculation

Three main concepts to be considered:• Estimation (depends on several components).• Justification (in the light of budgetary or

biological considerations)

• Adjustments (accounting for potential dropouts or effect of covariates)

Page 6: Sample determinants and size

Role of Pilot Studies• Preliminary study intended to test

feasibility, data collection methods, and collect information for sample size calculations.

• Not a study (too small to produce a definitive answer)

• As a tool in finding the answers.• Sample size calculation is not

required

Page 7: Sample determinants and size

Importance of Sample Size calculation

• Scientific reasons• Ethical reasons• Economic reasons

Page 8: Sample determinants and size

I-Scientific Reasons

• In a trial with negative results and a sufficient sample size, the result is concrete (treatment has no

effect-no difference).

• In a trial with negative results and insufficient power (insufficient sample size), may mistakenly conclude that the treatment under study made no difference (false conclusion).

Page 9: Sample determinants and size

II-Ethical Reasons

• Undersized study can expose subjects to potentially harmful treatments without the capability to advance knowledge.

• Oversized study has the potential to expose an unnecessarily large number of subjects to potentially harmful treatments.

Page 10: Sample determinants and size

III-Economic Reasons

• Undersized study is a waste of resources due to its inability to yield a meaningful useful results.

• Oversized study potential of statistically significant result with doubtful clinical significance leading to waste of resources.

Page 11: Sample determinants and size

Approaches to sample size calculation

• Precision analysis– Bayesian– Frequentist

• Power analysis– Most common

Page 12: Sample determinants and size

A-Precision Analysis

Applicable in studies concerned with estimating parameters:– Precision– Accuracy– Prevalence

Page 13: Sample determinants and size

B-Power Analysis

• In studies concerned with detecting an effect.

• Important to ensure that if a clinically meaningful effect exists, there is a high chance of it being detected

Page 14: Sample determinants and size

Factors Influencing Sample Size Calculations

1- The objective (precision, power analysis)2- Details of intervention and control trial.3- The outcomes

– Categorical - continuous– Single - multiple– Primary-Secondary– Clinical relevance – Missed data

Page 15: Sample determinants and size

Factors Influencing Sample Size Calculations

4- Possible covariates to control (confounders).

5- The unit of randomization/analysis. – Individuals/Family practices– Hospital wards– Communities– Families

Page 16: Sample determinants and size

6- The research design:– Simple RCT-Cluster RCT– Equivalence– Non-randomized

intervention study– Observational study– Prevalence study– Sensitivity and

specificity– Paired comparison– Repeated-measures

study

7- Research subjects- Target population- Inclusion-exclusion criteria- Baseline risk- Compliance rate- Drop-out rate

Page 17: Sample determinants and size

8- Parameters

a- Desired level of significanceb- Desired powerc- One or two-tailsd- Possible ranges or variations in expected outcome. e- The smallest difference:

– Smallest clinically important differencef- Justification of previous data:

– Published data, Previous work– Review of records and experts opinion

g- Software or formula being used:

Page 18: Sample determinants and size

Effect size

• The numerical value summarizing the difference of interest (effect size)

– Odds Ratio (OR) Null, OR=1

– Relative Risk (RR) Null, RR=1

– Risk Difference (RD) Null, RD=0– Difference Between Means Null,

D=0– Correlation Coefficient Null, r=

0

Page 19: Sample determinants and size

Statistical Terms

• P-value: Probability of obtaining an effect as extreme or more extreme than what is observed by chance.

• Significance level of a test: Cut-off point for the p-value (conventionally it is 5% or 0.05).

• Power of a test: Correctly reject the null hypothesis when there is indeed a real difference or association (typically set at least 80%).

• Effect size of clinical importance.

Page 20: Sample determinants and size

[One or two sided]Two-sided test

• Alternative hypothesis suggests that a difference exists in either direction

• Should be used unless there is a very good reason for doing otherwise

One-sided test• When it is completely unlikely that the result could go

in either direction, or the only concern is in one direction

– Toxicity studies– Safety evaluation– Adverse drug reactions– Risk analysis

Page 21: Sample determinants and size

Approach in calculating the sample size

1. Specify your hypothesis.2. Specify the significance level ().3. Specify an effect size.4. Obtain historical values (previous research).5. Specify a power (). 6. Use appropriate formula to calculate sample

size.

Page 22: Sample determinants and size

Components of sample size calculations

Acceptable level of type I and type II errorsAppropriate statistical power

Effect sizeSignificance

Estimated measurement of variabilityDesign effect in survey

Page 23: Sample determinants and size

Type I, and II errors

Page 24: Sample determinants and size

Possible situations in Hypothesis testing

Do not reject H0

Reject H0

OK (1-ά) Type I error (ά) H0 is true

Type II error () OK (1-) H0 is not true

Realit

y

Decision

Level of significance (0.05) Confidence

1-= PowerIt is the probability to reject the null hypothesis if is NOT TRUE.Usually 80% is the least required for any test

False rejection/false positive

False acceptance/false negative

Page 25: Sample determinants and size

04/10/2023 Dr. Tarek Tawfik 25

Type I and type II errors

Type I error or alpha (false-positive) :Rejecting the null when it is true.Type II error or beta (false-negative) : Accepting the null when it is false.

Page 26: Sample determinants and size

04/10/2023 Dr. Tarek Tawfik 26

The probability of committing a type

I error (rejecting the null when it is actually true) is called (alpha), another name is the level of statistical significance.

An level of 0.05, setting 5 % as the maximum chance of incorrectly rejecting the null hypothesis.

Page 27: Sample determinants and size

04/10/2023 Dr. Tarek Tawfik 27

The probability of making a type II error

(failing to reject the null hypothesis when it is actually false) is called (beta).

The quantity (1- ) is called power, the ability

to detect the difference of a given size.

If is set at 0.10, we are willing to accept a 10 % chance of missing an association of a given effect size.

This represents a power of 90 % (there is 90 % chance of finding an association of that size).

Page 28: Sample determinants and size

04/10/2023 Dr. Tarek Tawfik 28

P value

A ‘non significant’ result (i.e., one with a P value greater than >0.05) does not mean that there is no association in the population, it only means that the result observed in the sample is small compared with that occurred by chance alone.

Page 29: Sample determinants and size

Estimated measurement of variability

- The expected standard deviation in the measurement made within each comparison group.

- If the variability increases, sample size increases.

Page 30: Sample determinants and size

Z and Z for calculating the sample size

Significance level

Z () critical value* **

Power Z () power

0.01(99%) 2.5762.326

0.08 0.842

0.02(98%) 2.3261.645

0.85 1.036

0.05 (95%) 1.9601.282

0.90 1.282

0.10 (90%) 1.645 0.95 1.645

*One tail**Two tails

Page 31: Sample determinants and size

Sample size for comparative studies (dichotomous outcomes)

2/)(*

)1()1()*1(*2

2

PcPeP

PcPcPePeZPPZn

=Pe -PcPe= experimental Pc= control

Significance=1.960

Power=0.842

Page 32: Sample determinants and size

An investigator hypothesizes that caffeine is better than aminophylline in terms of reducing apnea of prematurity. Previous studies have reported an efficacy of 40% for aminophylline. To detect a 5 % difference between them with power of 80% and two tailed test of 5% significance level, what sample size would be needed?

N= {1.960√ [0.375(1-0.375)] +0.840√ [0.35 (1-0.35) + 0.4(1-0.4)]} 2 ⁄ 0.05 2

Sample size required per group is 876. For correction of continuity and high degree of

accuracy one need to increase the sample size by 2/(Pe - Pc).

Then final sample size would be 896 per group.

Page 33: Sample determinants and size

Sample size calculations for comparative studies (continuous outcome)

222 )(4D

ZZN

= Standard deviation of the outcome variable Z= confidence level=1.960Z= Power= 0.842D2 = the effect size

Page 34: Sample determinants and size

An investigator plans a randomized control trial of the effect of salbutamol and ipratropium bromide on FEV 1 after 2 weeks of treatment. Previous study has reported mean FEV 1 in persons treated with asthma was 2 liters with a standard deviation of 1 liter. If the investigator tries to detect a difference of 10% between them, how many individual will be required for the study?

N= 4*1 2(1.960+0.842) 2 / 0.2 2 =785 person required.

Page 35: Sample determinants and size

Sample size for descriptive studies: continuous variable

2

22*4

W

SZN

Z=Confidence level=1.960S= Standard deviationW= Width of Confidence interval

Page 36: Sample determinants and size

Suppose an investigator wants to detect the mean weight of newborns between 30-34 week of gestation with 95% confidence interval not more than ±0.1 kg. From the previous study the standard deviation has been reported of 1 kg, then the sample size required would be,

N = 4*1.96 2*1 2/0.2 2=384 newborns required.

Page 37: Sample determinants and size

Descriptive study: Dichotomous variable

2

2 )1(**4

W

PPZN

Z= Confidence level=1.960W= width of C.IP= pre study estimate of proportion

Page 38: Sample determinants and size

Let us consider that an investigator wish to determine the incidence of nosocomial pneumonia (NP) in neonatal intensive care with 95% confidence level. He selected a confidence interval of ± 10 and the mean incidence NP has been reported earlier is 20%. Then the required sample size would be

N = 4*1.96 2*0.20(1-0.20)/ 0.20 2 = 62

Page 39: Sample determinants and size

Strategies For Maximizing Power and Minimizing the Sample Size

• Use common outcomes. • Use paired design (such as cross-over trial)• Use continuous variables

Page 40: Sample determinants and size

General Rules of Thumb

1- Don’t forget multiplicity testing corrections (Bonferroni)

2- Better to be conservative (assume two-sided).

3- Remember that sample size calculation gives you the minimum required.

4- None RCTs require a much larger sample to allow adjustment for confounders.

5- Equivalence studies need a larger sample size than studies aimed to demonstrate a difference.

Page 41: Sample determinants and size

General Rules of Thumb

• For moderate to large effect size (0.5<effect size<0.8), 30 subjects per group.

• For comparison between 3 or more

groups, to detect a moderate effect size of 0.5 with 80% power, require 14 subjects/group.

Page 42: Sample determinants and size

Rules of Thumb for Associations

• Multiple Regression– Minimal requirement is a ratio of 5

subjects:1 independent variable. The desired ratio is 15:1

• Multiple Correlations– For 5 or less predictors use n>50– For 6 or more use 10 subjects per

predictor

• Logistic Regression– For stable models use 10-15 events per

predictor variable

Page 43: Sample determinants and size

Rules of Thumb for Associations

• Large samples are needed in: – Non-normal distribution– Small effect size– Substantial measurement error– Stepwise regression is used

• For chi-square testing (2X2 table):– Enough sample size so that no cell <5 – Overall sample size should be at least

20

Page 44: Sample determinants and size

Rules of Thumb for Associations

For Factor analysis– At least 50 participants/subjects per

variable– Minimum 300

• N=50 very poor• N=100 poor• N=200 fair• N=300 good• N=500 very good

Page 45: Sample determinants and size

Software for calculations

• nQuery Advisor 2000• Power and Precision 1997• Pass 2000• UnifyPow 1998• Epi-Info: descriptive studies • OpenEPI: descriptive studies

Page 46: Sample determinants and size

Thank you