Professional Documents
Culture Documents
Lisa M. Sullivan
This Excel workbook contains 10 worksheets to conduct tests of hypothesis for means (m), proportions (p), the mean difference
in matched or paired samples (md), the difference in means (m1-m2) and the difference in proportions (p1-p2) using the formula
and procedures outlined in Chapter 7 of Essentials of Biostatistics in Public Health.
For each analysis, either raw data (i.e. data measured on each participant in the study sample(s)) or summary data (e.g., samp
size, sample mean and sample standard deviation) can be entered into the worksheet to conduct the test of hypothesis. The
worksheets to compute the different tests of hypothesis are described below.
1 - Test for m
Test of hypothesis for the mean of a population, continuous outome - Enter raw data into worksheet
3 - Test for p
Test of hypothesis for the population proportion, dichotomous outome - Enter raw data into worksheet
5 - Test for md
Test of hypothesis for the mean difference in matched or paired samples, continuous outome - Enter raw data into worksheet
9 - Test for (p1-p2) (NOTE: Also computes CI for relative risk and odds ratio)
Test of hypothesis for the difference in two independent proportions, dichotomous outome - Enter raw data into worksheet
SUMMARY STATISTICS
n 20
Enter the Details of the Test of Hypothesis Mean 125.00
In the Designated Cells in Column D (Yellow). Std Dev 14.00
Then Enter Sumary Statistics
(n, Sample Mean, Sample Standard Deviation) RESULTS
In Cells D7 Through D9 (Yellow). SE 3.130
Results Will Show in Green Cells. t -1.597
One sided p-value 0.0634
Two sided p-value 0.1267
One Sample Test for p X Level of Significance 5%
1 Proportion Under H0 0.50
INSTRUCTIONS 0
0 RESULTS*
1 n 20
1 Sample Proportion 0.350
Enter Your Data in Column C (Yellow). 1 Std Dev 0.477
Code Data as 0=No and 1=Yes.
1 SE 0.107
Place the Variable Name in Cell C2 0 Z -1.342
and the Data Starting in Cell C3.
0 One sided p-value 0.090
Then Enter the Details of the Test of Hypothesis 1 Two-sided p-value 0.180
In the Designated Cells in Column F (Yellow). 0
Results Will Show in Green Cells. 1
0 *Min(np,n(1-p))>=5
0
Note: You must "DELETE" old data in Column C before 0 13
starting a new analysis. 0 7
0
0
0
0
One Sample Test for p Level of Significance 5%
Proportion Under H0 0.50
INSTRUCTIONS
SUMMARY STATISTICS
n 20
Number of Successes 6
or Sample Proportion
Enter the Details of the Test of Hypothesis
In the Designated Cells in Column D (Yellow). RESULTS*
Then Enter Summary Statistics Sample Proportion 0.300
(n, Number of Successes or Sample Proportion) Std Dev 0.458
in Cells D6 and Either D7 or D8 (Yellow). SE 0.102
Results Will Show in Green Cells. Z -1.789
One sided p-value 0.037
Two-sided p-value 0.074
*Min(np,n(1-p))>=5
Two Dependent Samples CI for m d Basline 6 Months Differences Level of Significance 5%
215 205 10 Mean Difference Under H0 0.00
INSTRUCTIONS 190 156 34
230 190 40 RESULTS
220 180 40 n (Number of Pairs) 15
214 201 13 Mean Difference 16.933
Enter Your Data in Columns C & D (Yellow).
240 227 13 Std Dev of Difference 14.165
Place the Variable Names in Cells C2 & D2 210 197 13 SE 3.657
and the Data Starting in Cells C3 & D3.
193 173 20 t 4.630
Then Enter the Details of the Test of Hypothesis 210 204 6 One sided p-value 0.000
in the Designated Cells in Column H (Yellow). 230 217 13 Two sided p-value 0.000
Results Will Show in Green Cells. 180 142 38
260 262 -2
210 207 3
Note: You must "DELETE" old data in Columns C & D 190 184 6
before starting a new analysis. 200 193 7
Two Dependent Samples CI for m d Level of Significance 5%
Mean Difference Under H0 0.00
INSTRUCTIONS
SUMMARY STATISTICS
n (Number of Pairs) 20
Mean Difference 0.08
Enter the Details of the Test of Hypothesis Std Dev of Difference 0.30
in the Designated Cells in Column D (Yellow).