Stata 9 Supplement for: Biostatistics for the Health Sciences
R. Clifford Blair and Richard A Taylor
April 2, 2007
Contents
1 Preliminaries 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Inputting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Performing Analyses . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.5 Editing And Printing Your Output . . . . . . . . . . . . . . . . . 5
1.6 Creating New Variables . . . . . . . . . . . . . . . . . . . . . . . 7
1.7 Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Descriptive Methods 11
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.5 Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.6 Numerical Methods . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3 Probability 25
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.3 Contingency Tables . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.4 The Normal Curve . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4 Introduction To Inference And One Sample Methods 29
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.2 Sampling Distributions . . . . . . . . . . . . . . . . . . . . . . . . 29
4.3 Hypothesis Testing . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.4 Confidence Intervals . . . . . . . . . . . . . . . . . . . . . . . . . 36
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5 Paired Samples Methods 41
5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.2 Methods Related to Mean Difference . . . . . . . . . . . . . . . . 41
5.3 Methods Related to Proportions . . . . . . . . . . . . . . . . . . 43
iii
iv CONTENTS
5.4 Methods Related to Paired Samples Risk Ratios . . . . . . . . . 45
5.5 Methods Related to Paired Samples Odds Ratios . . . . . . . . . 46
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
6 Two Independent Samples Methods 49
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
6.2 Methods Related to Differences Between Means . . . . . . . . . . 49
6.3 Methods Related to Proportions . . . . . . . . . . . . . . . . . . 51
6.4 Methods Related to Independent Samples Risk Ratios . . . . . . 52
6.5 Independent Samples Odds Ratios . . . . . . . . . . . . . . . . . 52
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
7 Multi-Sample Methods 55
7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
7.2 The Oneway Analysis of Variance (ANOVA) F Test . . . . . . . 55
7.3 The 2 By k Chi-Square Test . . . . . . . . . . . . . . . . . . . . . 56
7.4 Multiple Comparison Procedures . . . . . . . . . . . . . . . . . . 57
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
8 The Assessment of Relationships 59
8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
8.2 The Pearson Product-Moment Correlation Coefficient . . . . . . 59
8.3 The Chi-Square Test For Independence . . . . . . . . . . . . . . . 60
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
9 Linear Regression 63
9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
9.2 Simple Linear Regression . . . . . . . . . . . . . . . . . . . . . . 63
9.3 Multiple Linear Regression . . . . . . . . . . . . . . . . . . . . . 64
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
10 Methods Based on the Permutation Principle 67
10.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
10.3 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
A Table Relating Text Items to Tasks 73
[此贴子已经被作者于2007-5-10 18:27:15编辑过]