Stata 9 Supplement for: Biostatistics for the
Health Sciences
1 Preliminaries 1
1.1 Introduction.. ... .... ... .... ... .... ... .... 1
1.2 GettingStarted... .... ... .... ... .... ... .... 1
1.3 InputtingData ... .... ... .... ... .... ... .... 3
1.4 Performing Analyses . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.5 Editing And Printing Your Output . . . . . . . . . . . . . . . . . 5
1.6 Creating New Variables . . . . . . . . . . . . . . . . . . . . . . . 7
1.7 Graphs. .... ... .... ... .... ... .... ... .... 9
Exercises .. .... ... .... ... .... ... .... ... .... 10
2 Descriptive Methods 11
2.1 Introduction.. ... .... ... .... ... .... ... .... 11
2.4 Distributions . ... .... ... .... ... .... ... .... 11
2.5 Graphs. .... ... .... ... .... ... .... ... .... 15
2.6 Numerical Methods . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Exercises .. .... ... .... ... .... ... .... ... .... 25
3 Probability 27
3.1 Introduction.. ... .... ... .... ... .... ... .... 27
3.3 Contingency Tables . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.4 TheNormalCurve . .... ... .... ... .... ... .... 29
Exercises .. .... ... .... ... .... ... .... ... .... 30
4 Introduction To Inference And One Sample Methods 31
4.1 Introduction.. ... .... ... .... ... .... ... .... 31
4.2 Sampling Distributions . . . . . . . . . . . . . . . . . . . . . . . . 31
4.3 Hypothesis Testing . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.4 Confidence Intervals . . . . . . . . . . . . . . . . . . . . . . . . . 39
Exercises .. .... ... .... ... .... ... .... ... .... 41
5 Paired Samples Methods 43
5.1 Introduction.. ... .... ... .... ... .... ... .... 43
5.2 Methods Related to Mean Difference . . . . . . . . . . . . . . . . 43
5.3 Methods Related to Proportions . . . . . . . . . . . . . . . . . . 45
iii
iv CONTENTS
5.4 Methods Related to Paired Samples Risk Ratios . . . . . . . . . 47
5.5 Methods Related to Paired Samples Odds Ratios . . . . . . . . . 48
Exercises .. ... .... ... .... ... .... ... .... ... . 50
6 Two Independent Samples Methods 51
6.1 Introduction. .... ... .... ... .... ... .... ... . 51
6.2 Methods Related to Differences Between Means . . . . . . . . . . 51
6.3 Methods Related to Proportions . . . . . . . . . . . . . . . . . . 53
6.4 Methods Related to Independent Samples Risk Ratios . . . . . . 54
6.5 Independent Samples Odds Ratios . . . . . . . . . . . . . . . . . 56
Exercises .. ... .... ... .... ... .... ... .... ... . 58
7 Multi-Sample Methods 59
7.1 Introduction. .... ... .... ... .... ... .... ... . 59
7.2 The Oneway Analysis of Variance (ANOVA) F Test . . . . . . . 59
7.3 The 2 BykChi-Square Test . . . . . . . . . . . . . . . . . . . . . 60
7.4 Multiple Comparison Procedures . . . . . . . . . . . . . . . . . . 61
Exercises .. ... .... ... .... ... .... ... .... ... . 62
8 The Assessment of Relationships 63
8.1 Introduction. .... ... .... ... .... ... .... ... . 63
8.2 The Pearson Product-Moment Correlation Coefficient . . . . . . 63
8.3 The Chi-Square Test For Independence . . . . . . . . . . . . . . . 64
Exercises .. ... .... ... .... ... .... ... .... ... . 65
9 Linear Regression 67
9.1 Introduction. .... ... .... ... .... ... .... ... . 67
9.2 Simple Linear Regression . . . . . . . . . . . . . . . . . . . . . . 67
9.3 Multiple Linear Regression . . . . . . . . . . . . . . . . . . . . . 68
Exercises .. ... .... ... .... ... .... ... .... ... . 70
10 Methods Based on the Permutation Principle 71
10.1Introduction. .... ... .... ... .... ... .... ... . 71
10.3Applications. .... ... .... ... .... ... .... ... . 71
Exercises .. ... .... ... .... ... .... ... .... ... . 74
A Table Relating Text Items to Tasks