Preface |
|
xi | |
Acknowledgments |
|
xiii | |
About the Author |
|
xv | |
Chapter 1 Introduction: What Is R? |
|
1 | (12) |
|
Downloading R and RStudio |
|
|
1 | (1) |
|
Creating a Project Folder |
|
|
1 | (2) |
|
Getting Acquainted With the RStudio Environment |
|
|
3 | (1) |
|
|
3 | (4) |
|
|
7 | (1) |
|
Appendix 1A: Preparing RStudio Project Folder |
|
|
8 | (5) |
Chapter 2 Basic Tasks in R |
|
13 | (12) |
|
Coding in R: Object-Oriented Programming |
|
|
13 | (3) |
|
|
16 | (3) |
|
|
19 | (1) |
|
|
20 | (2) |
|
|
22 | (3) |
Chapter 3 Frequency Tables |
|
25 | (8) |
|
Frequency Tables With Quantitative Variables |
|
|
28 | (1) |
|
Appendix 3A: R Instructions to Accompany Warner (2020a) |
|
|
29 | (4) |
Chapter 4 Descriptive Statistics |
|
33 | (12) |
|
Describing Central Tendency |
|
|
34 | (2) |
|
|
36 | (3) |
|
Appendix 4A: R Instructions to Accompany Warner (2020a) |
|
|
39 | (4) |
|
Appendix 4B: Mode Function |
|
|
43 | (2) |
Chapter 5 Visualizing Data: Bar Charts, Histograms, and Boxplots |
|
45 | (22) |
|
Visualizing Categorical Variables |
|
|
45 | (4) |
|
Visualizing Quantitative Variables |
|
|
49 | (3) |
|
Visualizing and Accounting for a Second Variable |
|
|
52 | (7) |
|
Appendix 5A: R Instructions to Accompany Warner (2020a) |
|
|
59 | (8) |
Chapter 6 Evaluating Score Locations: Introducing the Normal Distribution and z Scores |
|
67 | (18) |
|
Getting Familiar With New Data Frames and Variables |
|
|
67 | (2) |
|
|
69 | (4) |
|
|
73 | (2) |
|
|
75 | (6) |
|
Appendix 6A: R Instructions to Accompany Warner (2020a) |
|
|
81 | (4) |
Chapter 7 Sampling Error and Confidence Intervals |
|
85 | (14) |
|
|
85 | (5) |
|
|
90 | (3) |
|
Appendix 7A: R Instructions to Accompany Warner (2020a) |
|
|
93 | (6) |
Chapter 8 One-Sample t Test: Introduction to Statistical Significance Tests |
|
99 | (12) |
|
|
99 | (2) |
|
Performing One-Sample t Tests |
|
|
101 | (2) |
|
|
103 | (1) |
|
|
104 | (2) |
|
Appendix 8A: R Instructions to Accompany Warner (2020a) |
|
|
106 | (2) |
|
Appendix 8B: One-Sample z Test |
|
|
108 | (3) |
Chapter 9 Significance Tests Continued: Effect Size and Power |
|
111 | (4) |
|
Estimating the Needed Sample Size |
|
|
112 | (1) |
|
Estimating the Obtained Power |
|
|
113 | (2) |
Chapter 10 Bivariate Pearson Correlation |
|
115 | (14) |
|
|
115 | (2) |
|
Performing Pearson's Bivariate Correlation |
|
|
117 | (1) |
|
|
118 | (3) |
|
Appendix 10A: R Instructions to Accompany Warner (2020a) |
|
|
121 | (8) |
Chapter 11 Bivariate Regression |
|
129 | (10) |
|
|
129 | (2) |
|
Performing Bivariate Regression |
|
|
131 | (4) |
|
Appendix 11A: R Instructions to Accompany Warner (2020a) |
|
|
135 | (4) |
Chapter 12 Independent-Samples tTest |
|
139 | (16) |
|
|
139 | (3) |
|
Performing Independent-Samples tTests |
|
|
142 | (1) |
|
|
143 | (3) |
|
|
146 | (1) |
|
Appendix 12A: R Instructions to Accompany Warner (2020a) |
|
|
147 | (6) |
|
Appendix 12B: Wilcoxon-Mann-Whitney II Test |
|
|
153 | (2) |
Chapter 13 One-Way Between-Subjects Analysis of Variance |
|
155 | (18) |
|
|
155 | (4) |
|
Performing One-Way Between-Subjects ANOVA Tests |
|
|
159 | (2) |
|
|
161 | (3) |
|
|
164 | (2) |
|
Appendix 13A: R Instructions to Accompany Warner (2020a) |
|
|
166 | (7) |
Chapter 14 Paired-Samples tTest |
|
173 | (14) |
|
|
173 | (2) |
|
Performing Paired-Samples t Tests |
|
|
175 | (1) |
|
|
176 | (2) |
|
|
178 | (2) |
|
Appendix 14A: R Instructions to Accompany Warner (2020a) |
|
|
180 | (7) |
Chapter 15 One-Way Repeated-Measures Analysis of Variance |
|
187 | (14) |
|
|
187 | (3) |
|
Performing One-Way Repeated-Measures ANOVA Tests |
|
|
190 | (3) |
|
|
193 | (2) |
|
|
195 | (1) |
|
Appendix 15A: R Instructions to Accompany Warner (2020a) |
|
|
196 | (5) |
Chapter 16 Factorial Analysis of Variance |
|
201 | (16) |
|
|
201 | (2) |
|
Performing TWo-Way Between-Subjects ANOVA Tests |
|
|
203 | (1) |
|
|
204 | (2) |
|
|
206 | (3) |
|
Appendix 16A: R Instructions to Accompany Warner (2020a) |
|
|
209 | (6) |
|
Appendix 16B: Converting Education Variable to Dichotomous Variable |
|
|
215 | (2) |
Chapter 17 Chi-Square (e) Test of Independence |
|
217 | (14) |
|
|
217 | (1) |
|
Performing Chi-Square (z2) Tests of Independence |
|
|
218 | (2) |
|
|
220 | (1) |
|
|
221 | (3) |
|
Appendix 17A: R Instructions to Accompany Warner (2020a) |
|
|
224 | (7) |
Chapter 18 Parting Thoughts About R |
|
231 | (2) |
|
|
231 | (1) |
|
|
232 | (1) |
References |
|
233 | |