-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.Rmd
468 lines (273 loc) · 29.7 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
---
title: 'A Lab Manual for PSYC 301: Elementary Statistics for Psychology'
author:
affiliation: 'Department of Psychological & Brain Sciences at Texas A&M University (until May 2022)'
name: "Patrick Bolger, PhD"
date: "`r format(Sys.time(), '%d %B %Y')`"
description: 'This is a lab manual for PSYC 301: Elementary Statistics for Psychology. It is an open educational resource (OER), so there is no charge to students.'
documentclass: book
github-repo: patrickabolger/ElemStatsLabManual
link-citations: true
bibliography: ["book.bib", "packages.bib"]
biblio-style: "apa"
csl: "apa.csl"
nocite: "@SchroederEpley2015, \n@MehrSongSpelke2016,\n@RogersMilkman2016\n"
site: bookdown::bookdown_site
url: https\://patrickabolger.github.io/ElemStatsLabManual/
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = F, warning = F, message = F, comment = "")
library(magrittr)
library(kableExtra)
library(pander)
```
```{r, eval=F, include=F}
# The code below will install packages that you need for this Bookdown document,
# but only if you don't already have the package(s).
# To make it work, you'll need to switch eval=F to eval=T, above, then run this chunk
# by clicking the green arrow in the upper right of this chunk.
# IMPORTANT: Afterwards, set eval=T back to eval=F. (the reason for this is that it is
# considered rude to share code that automatically installs programs on other people's computers.)
# want <- c("readr", "dplyr", "magrittr", "jmv", "kableExtra", "trimr", "haven", "scatr", "jquerylib")
# have <- want %in% rownames(installed.packages())
# if(any(!have)) install.packages(want[!have])
# rm(want)
# rm(have)
```
```{r, eval=F, include=F}
# You will need the package "bookdown". If you don't have it installed, you can set
# eval=TRUE above. Set it back to FALSE after installing.
#install.packages("bookdown")
# or the development version
#devtools::install_github("rstudio/bookdown")
```
```{r writePackageBib, eval=F, include=F}
# automatically create a bib database for *R* packages
# Some are obscured from the reader, so they don't need to go here
# knitr::write_bib(c(
# .packages(), 'bookdown', 'knitr', 'rmarkdown', 'haven', 'kableExtra', 'jmv', 'tinytex', 'tidyverse'
# ),
# 'packages.bib')
```
```{r}
jquerylib::jquery_core(3)
```
# Preface {-}
**Howdy!**
This is a lab manual for PSYC 301: Elementary Statistics for Psychology at Texas A&M University. It is an [Open Educational Resource](https://en.wikipedia.org/wiki/Open_educational_resources), and is free to read, licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
```{r cc-by-sa, out.width='20%', fig.align='left', echo=F}
knitr::include_graphics('images/by-sa.png')
```
![bookdown sticker](images/stickers/bookdown.png){width=15%}![dplyr sticker](images/stickers/dplyr.png){width=15%}![ggplot2 sticker](images/stickers/ggplot2.png){width=15%}![knitr sticker](images/stickers/knitr.png){width=15%}![tinytex sticker](images/stickers/logo-tinytex.png){width=15%}![migrittr sticker](images/stickers/pipe.png){width=15%}![rmarkdown sticker](images/stickers/rmarkdown.png){width=15%}![RStudio sticker](images/stickers/RStudio.png){width=15%}![kableExtr sticker](images/stickers/kableExtra.svg){width=15%}![tibble sticker](images/stickers/tibble.png){width=15%}
<br/>
It complements the main class, which also uses an OER textbook, **Learning Statistics with jamovi** by @lsj, linked [here](https://www.learnstatswithjamovi.com/).
In short, the class is more about the theory behind statistics, and the lab is more about practical application, especially writing up research that employs statistics. Among other things, your TA will guide you through this manual by directing you which chapters to read, what to pay particular attention to, and which exercises to practice with. More specific goals are listed below.
<br/>
## Goals {#goals}
The purpose of this manual and the other resources listed above is to give you the resources necessary to do the following:
1. ***Learn jamovi***. Using the free statistical software [jamovi](https://www.jamovi.org/), leverage the knowledge of statistical theory that you learn in the main class in order to carry out small-scale, in-class exercises. *jamovi* employs an easy-to-use graphical user interface ([GUI](https://en.wikipedia.org/wiki/Graphical_user_interface), pronounced "gooey"), but is built on top of the programming language [R](https://www.R-project.org/) [@R-base], which has become extremely popular among data scientists during the last two decades. Chapters \@ref(GettingUsedtoJamovi)-\@ref(FactorialAnova) of this lab manual cover learning *jamovi*.
2. ***Design and conduct your own study*** in small groups. This will take the form of a survey that you will design and distribute using *Google Forms* (see above). You already have a template for this survey in your shared group folder in *Google Drive* (under the main instructor's account). Please save this *Google Form* (i.e., GoogleFormsTemplate) as a new form with a name that appropriately reflects the topic of your survey (e.g., SleepAndAcademicAchievement). There is more on *Google Drive* and *Google Forms* down below. Chapter \@ref(SurveyDesignAndDataCollection) of this lab manual provides a general overview of this portion of the research project.
3. ***Analyze the data from your study***. Using the same software (*jamovi*), perform the front-end work on the main project assignment of the lab: a small-scale research paper. Specifically, you will import raw data from your survey into *jamovi*, modify the data however necessary (both covered in Chapter \@ref(DataPreparationAndAnalyses) of this manual), and carry out the appropriate statistical analyses and visualizations quickly and efficiently These statistical procedures are covered in Chapters \@ref(DescriptiveStats)-\@ref(FactorialAnova) of this manual, but specifically the following chapters in the following order: \@ref(ComparingTwoMeans) and \@ref(ComparingSeveralMeans), followed by \@ref(CorrAndLinearReg)). The output of these analyses will underlie what you write in the Results and Discussion sections of your paper (see below).
4. ***Write a paper*** (in four parts). Based on both (1) through (3) directly above, you will write a small-scale research paper. This effort will be staged through four, major writing assignments based broadly speaking on each of the four typical sections of a research paper in psychology: **Introduction**, **Method**, **Results**, and **Discussion**.^[This is sometimes referred to as *IMRaD* structure, an acronym composed of each of the section's first letters.] However, due to the timing of statistical topics in the main class, the paper will take the following, slightly modified, though still very common form:^[In fact, it is more common.] **Introduction**, **Method**, ***STUDY 1*** (**Results**, **Discussion**), ***STUDY 2*** (**Results**, **Discussion**), **General Discussion**. Each assignment will be broken into two parts: (1) a rough draft that will be peer-reviewed through *Peerceptiv* (via *Canvas*); and (2) a final draft that will be submitted through *Turnitin* (also via *Canvas*). This results in a total of eight writing assignments to turn in. Perceptiv and *Turnitin* are covered in more detail below. Chapters \@ref(ReportingResearch)-\@ref(WritingGeneralDiscussionSections), as well as all the Appendixes (A-J), are dedicated to showing you how to write just such a paper.
<br/>
## Resources {#Resources}
As noted above, you will need certain resources in order to achieve these goals. What follows are two lists of all the resources you will need to do so, all of which are available to you at no extra cost (beyond the tuition you have already paid). The first list consists of **fixed** resources, meaning that they are either textbooks, handouts, videos, or data sources that are given to you as-is. The second list is **active**, meaning generally that it's software that you can use freely, but you must do the work for it to be meaningful.
<br/>
### Fixed resources {#FixedResources}
#### This lab manual
This lab manual [@Bolger2019] was created also using the programming language *R* within *RStudio Desktop*, along with the *R* package [bookdown](https://bookdown.org/) [@R-bookdown], which uses [rmarkdown](https://rmarkdown.rstudio.com/) [@R-rmarkdown] to create books. *R Markdown* is a [markdown language](https://en.wikipedia.org/wiki/Markdown) for *R* created by the popular integrated development environment ([IDE](https://en.wikipedia.org/wiki/Integrated_development_environment)) [RStudio](https://www.rstudio.com/) [@RStudio], which makes programming in *R* easier.
Several other *R* packages were also used throughout. Many of these are represented by the hexagon icons near the top of this page. But note that hexagon icons are just a popular aesthetic. Some of the most important packages in *R* (and even in this manual) are not represented by hex icons.
<!-- REVISIT: ADD SOMETHING ABOUT WHERE THE PACKAGE CITATIONS ARE, WHENEVER THAT GETS FIXED. -->
---
<br/>
#### The jamovi user guide
The *jamovi* user guide [@jamovi] is linked [here](https://www.jamovi.org/user-manual.html). The *jamovi* website has a user manual for basic functions.
See Figure \@ref(fig:jum) below.
<br/>
```{r jum, fig.cap="The jamovi user guide.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/jum.png")
```
---
<br/>
#### The jamovi blog
*The jamovi blog* [@jamoviblog] is linked [here](https://blog.jamovi.org/). This blog from *jamovi* has occasional entries that can be helpful.
See Figure \@ref(fig:jblog) below.
<br/>
```{r jblog, fig.cap="The jamovi blog.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/jblog.png")
```
---
<br/>
#### Learning statistics with jamovi
This is the course textbook [@lsj]. It is linked [here](https://www.learnstatswithjamovi.com/).
See Figure \@ref(fig:lsj) below.
<br/>
```{r lsj, fig.cap="Learning statistics with jamovi.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/lsj.png")
```
---
<br/>
#### The jamovi quickstart guide
*The jamovi quickstart guide* [@Rafi2019] is linked [here](https://www.jamoviguide.com/). This is another free, but strictly online book that shows you how to carry out various functions in *jamovi*.
See Figure \@ref(fig:jqg) below.
<br/>
```{r jqg, fig.cap="The jamovi quickstart guide.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/jqg.png")
```
---
<br/>
#### datalab.cc
*datalab.cc* [@datalab.cc] is linked [here](https://datalab.cc/). This is a company created by Dr. Barton Poulson. The company is dedicated to teaching people about data science. One of the tools that gets extensive attention in the website is *jamovi*.^[There are also free video tutorials on other tools for data science (including [SPSS](https://datalab.cc/tools/spss01) if you are so inclined). You can find the full list of tutorials on data-science tools [here](https://datalab.cc/tools/toc). There are also some videos on the theory of statistics, which may be helpful in the main class: [datalab.cc statistics series](https://datalab.cc/foundations/statistics)] There are over 50 YouTube videos (totaling nearly 5 hours!) available for different functions in *jamovi*, all available under the [Attribution 4.0 International (CC BY 4.0) Creative Commons license](https://creativecommons.org/licenses/by/4.0/). This means that they are free for me to assign, and you to use. Note that we will not provide direct links to the individual videos.^[Linking directly just multiplies the number of URLs that we need to keep updated, something we would rather avoid.] Rather, we will tell you which numbered video to scroll to. To choose a video, click in the upper right-hand corner of the video screen. A drop-down menu will appear, where you scroll down to choose particular videos. If you are at Texas A&M, these tutorials are also available through the *LinkedIn Learning* tutorials, which you can go to through the *Howdy!* portal.
See Figure \@ref(fig:datalabcc) below.
<br/>
```{r datalabcc, fig.cap="datalab.cc.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/datalabcc.png")
```
---
<br/>
#### Statistics for psychologists: An online textbook
This textbook [@Wendorf2019] is not the textbook for this class, but it is linked [here](https://osf.io/qe5ym/). It is a free online textbook also available to you under the [Attribution 4.0 International (CC BY 4.0) Creative Commons license](https://creativecommons.org/licenses/by/4.0/). There are only a few chapters that are relevant for this course, namely the ones having to do with *jamovi*. There is an easier online venue to view the textbook than the *Open Science Framework* (which consists of individual `.pdf` files, which you are allowed to download for free). But [the GitHub site of Dr. Wendorf](https://cwendorf.github.io/Sourcebook/) is easier to navigate. We will link to tutorials here, especially in Chapters \@ref(DescriptiveStats)-\@ref(FactorialAnova) of this lab manual.
See Figure \@ref(fig:wendorf) below.
<br/>
```{r wendorf, fig.cap="Statistics for social science - A sourcebook for basic statistical methods.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/wendorf.png")
```
---
<br/>
#### Freely available data sets
There will also be a number of data sets freely available online that we will use throughout the semester. These will be referenced throughout this manual as they become relevant.
---
<br/>
### Software {#Software}
#### *jamovi*
*jamovi* [@jamovi] is linked [here](https://www.jamovi.org/), which again, is a friendly graphical user interface (GUI) for basic functions from the powerful open-source statistical software *R* [@R-base]. *jamovi* (all lowercase) was designed to provide the basic functionality that *SPSS* provides. *SPSS* is more common in the social sciences (for now), but you have to pay a lot of money to download it on your computer. *jamovi* can be downloaded and installed onto the following operating systems: Windows, Macs, Linux, and ChromeOS. See the next section for more detailed rationale for using *jamovi*.
See Figure \@ref(fig:jamovi) below.
<br/>
```{r jamovi, fig.cap="jamovi.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/jamovi.png")
```
<br/>
``` {block2, type='rmdnote', echo=T}
***NOTE***: This manual also uses the *R* package *jmv*, which is a package that generates *jamovi* output from within *R* itself. The formatting of the output is slightly different, especially with respect to the number of decimal places. These differences will be noted throughout as the need arises.
```
---
<br/>
#### Canvas
This is the learning-management system used at Texas A&M University. It is linked [here](https://lms.tamu.edu/).
See Figure \@ref(fig:canvas) below.
<br/>
```{r canvas, fig.cap="Canvas at Texas A&M.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/canvas.png")
```
---
<br/>
#### Peerceptiv
*Peerceptiv* is linked [here](https://www.peerceptiv.com/). It is a peer-review platform, and will be used to evaluate all rough drafts in this lab. *Peerceptiv* is not free, per se, but Texas A&M University has acquired a license for all its students to use. You will log in to it through *Canvas*.
See Figure \@ref(fig:peerceptiv) below.
<br/>
```{r peerceptiv, fig.cap="Peerceptiv.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/peerceptiv.png")
```
<br/>
``` {block2, type='rmdnote', echo=T}
***WARNING***: Do ***not ever*** log in to *Peerceptiv* through the *Peerceptiv* website to upload documents. Instead, ***always*** log in through the links provided in *Canvas*.
```
---
<br/>
#### Turnitin
*Turnitin* is linked [here](https://www.turnitin.com/). It is also commercial software, the license to which you have already contributed with your tuition. This is where you will upload all your final drafts. *Turnitin* is plagiarism-detection software. Plagiarism is not that likely in this lab since you will be working in groups on unique research projects with their own data. However, it has, in the past, detected within-group plagiarism in this class (all student writing must be independent, even within groups).
See Figure \@ref(fig:turnitin) below.
<br/>
```{r turnitin, fig.cap="Turnitin.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/turnitin.png")
```
<br/>
``` {block2, type='rmdnote', echo=T}
***WARNING***: Do ***not ever*** log in to *Turnitin* through the *Turnitin* website to upload documents. Instead, ***always*** log in through the links provided in *Canvas*.
```
---
<br/>
#### Google Apps for Texas A&M
*Google Apps at Texas A&M* is linked [here](https://google.tamu.edu/).
See Figure \@ref(fig:googleapps) below.
<br/>
```{r googleapps, fig.cap="Google apps at TAMU.", echo=F, out.width="600px"}
knitr::include_graphics("images/Index/googleapps.png")
```
<br/>
*Google Apps at Texas A&M* is a suite of cloud-based productivity software that you have available to you since you paid for it already with your tuition (*Google Apps* is also available for individuals for free, but *Google Apps for Education* is an enhanced suite that must be paid for by institutions). The main programs you will use are the following:
##### Google Drive
Linked [here](https://google.tamu.edu/Apps/google_drive.html), *Google Drive* will allow you to store the files from your group. Each student group will share a folder that will be located on the *Google Drive* of the course instructor. That is, your course instructor will be the owner. Your TA will also have access to this folder. There will be some key files that they will provide to each group. All documents except individual writing assignments will go into this folder. If you are at Texas A&M, there are tutorials through *LinkedIn Learning* in the *Howdy!* portal. *Google Drive* also provides you access to several kinds of productivity software, the following of which are critical to this class:
<br/>
##### Google Forms
*Google Forms* is linked [here](https://support.google.com/a/users/answer/9302965?hl=en). You will use *Google Forms* to design and send out your survey. There will be a template we provide for you in your shared *Google Drive* for your group. Texas A&M also has tutorials through *LinkedIn Learning*, accessible through the *Howdy!* portal.
<br/>
##### Google Sheets
*Google Sheets* is linked [here](https://support.google.com/a/users/answer/9310369?hl=en). You will use *Google Sheets* very briefly to house and then export your data from *Google Forms*. Texas A&M also has tutorials through *LinkedIn Learning*, accessible through the *Howdy!* portal.
<br/>
##### Google Docs
*Google Docs* is linked [here](https://support.google.com/a/users/answer/9300503?hl=en). We highly suggest you use *Google Docs* to write your papers. The reason is that you can save different [versions](https://support.google.com/docs/answer/190843) of it. In fact, just before you submit your writing assignments to *Peerceptiv* or *Turnitin* (see above), you could save that version of your Google Doc (**File** > **Version history** > **Name current version**; and name it, say, *Introduction_RoughDraft*), and it will be time-stamped. Even if you change your document subsequently, you can always revert it back to an earlier version, as can your TA or professor if you grant them **Can Edit** access. Tutorials on *Google Docs* are also available through *LinkedIn Learning* at Texas A&M.
<br/>
## Rationale for *jamovi* {#RationaleForJamovi}
You might be wondering why this lab manual focuses on *jamovi* and not, say, the more popular statistical-analysis software in the social sciences: [SPSS](https://www.ibm.com/analytics/spss-statistics-software) [@spss].
Indeed, *jamovi* is new and not as popular (at least not yet) in the social sciences, including Psychology. To be honest, *SPSS* is still the most popular among professors in Psychology. You are likely to encounter *SPSS* if you, say, join a lab in a Psychology Department.
However, *jamovi* offers some features that exceed in quality those of *SPSS* (at least the current version):^[The authors of your main textbook, @lsj, also have a list of reasons to prefer *jamovi* over *SPSS*. This list can be found at the very beginning of Chapter 3 of that textbook]
1. ***Cost***. *jamovi* is free for you to download onto your laptop (Windows, Mac, Linux, and ChromeOS). Note that you can also download *SPSS* on to your computer, but it will cost you. It is marketed through various third-party retailers. See the [SPSS](https://www.ibm.com/us-en/marketplace/spss-statistics-gradpack/details#product-header-top) website for details.^[You can find *SPSS* on designated computers throughout campus. This includes the computers in your lab because the department has purchased these licenses] In the end, however, *jamovi* turns out to be easier to use than *SPSS*, though the underlying statistical analyses are the same.^[We should mention that [SAS](https://www.sas.com/en_us/learn/academic-programs/students.html) is another commercial statistical-analysis software company that actually has made their extremely powerful software freely available for educational purposes. You can download it for free as [SAS University Edition](https://www.sas.com/en_us/software/university-edition.html), and it will run on your computer through your browser as a [virtualized application](https://en.wikipedia.org/wiki/Application_virtualization). The downside is that few psychologists use *SAS*, and it is notoriously difficult to learn. You can also find *SAS* on the [VOAL](https://connect.voal.tamu.edu/)]
2. ***Navigability***. *jamovi*'s GUI is much easier to navigate than that of *SPSS*. *jamovi* is really, really new (established in 2017), and *SPSS* has been around since the 1960s. As a result of its age and, presumably, a disinclination to field user complaints about broken code, *SPSS* carries a lot of menu "baggage" that retains backwards-compatibility with earlier versions of the software. That is, you can run statistical analyses in *SPSS* using code that your wrote decades ago. The cost of that failure to get rid of older functions is that *SPSS* has accumulated a lot of menu clutter. This can be frustrating for beginners. *jamovi* has no such clutter.
3. ***Compactness***. *jamovi* keeps its data, code, and output all in one file (a file with the .omv suffix). This makes analyses really easy to share with classmates, TAs, and (eventually) colleagues. You just send them the file that you worked on, and it opens up for them **exactly** the same way you left it when you last saved it. *SPSS* is not like this as the data, the syntax (to run the statistical procedures), and the output are all stored as three separate files (.sav, .sps, and .spv files, respectively). This can be frustrating. In *jamovi*, there is only one file (.omv).
4. ***Convenience***. If you send someone a .omv file from *jamovi* to work on, but they don't have *jamovi* installed, naturally they can just download and install it for free,^[... unless your collaborator refuses to download *jamovi* onto their own computer (a possibility, presumably)] and then get to work (as long as they have the space on their hard drive). For *SPSS* in contrast, if the person you are sharing your *SPSS* output with does **not** have *SPSS* available (on the computer they're currently working on), then they will either have to find a computer with *SPSS* on it or purchase and *SPSS* license to open your analysis. Alternatively, you could export all output to .pdf or .htm format. But then they would only be able to view your output, and not be able to change anything. Moreover, if you just want to share data, you need to export it to a text-delimited file so that your colleague can open it up on their end. All of this is solved by *jamovi*, where everything is all in one file.
<br/>
## Organization of this manual {#OrganizationOfThisManual}
The lab manual is organized as follows.
**Unit I** is ***Basics***.
**Chapter \@ref(GettingUsedtoJamovi)** is an introduction to *jamovi*, namely: how to install it on your own computer, how to add modules, navigating the interface, sharing files, etc.
**Chapter \@ref(BasicDataOperations)** shows you how to, enter and import data into *jamovi*, as well as manipulate it, transform it, etc.
**Chapter \@ref(DescriptiveStats)** shows you how to generate the basic statistics (**descriptive statistics**) that must always be reported in research. These descriptive statistics also lay the foundation for the inferential statistics that follow in subsequent chapters.
**Chapter \@ref(DataVisualization)** tutors you on how to use the graphical capabilities of *jamovi*.
<br/>
**Unit II** is ***Inferential statistics***.
**Chapter \@ref(CategoricalDataAnalysis)** begins the first such test in this class: categorical data analysis, and in particular, **chi-square** $(\chi^2)$, which you can use when the outcome variable is a discrete count of something (like number of people in the class), and your predictor is a categorical variable with (hopefully) very few levels (e.g., `Class Level`: `Freshman`, `Sophomore`, `Junior`, `Senior`).
**Chapter \@ref(ComparingTwoMeans)** covers ***t*****-tests**, which you use when your outcome variable is continuous (e.g., `body weight`), and you have a single, dichotomous predictor variable (e.g., `Dietary Preference`: `vegetarian` vs. `omnivore`).
**Chapter \@ref(CorrAndLinearReg)**, ***Correlation and linear regression***, shows you the analysis to use when you have a single, continuous outcome variable, and one or more continuous predictor variables, like `IQ` and `GPA`.^[This is another lie; there is no limit to the number or types of variables in linear regression, but we keep it mostly simple to start with in this chapter.]
**Chapter \@ref(ComparingSeveralMeans)** is an extension of chapter \@ref(ComparingTwoMeans), but instead of having just 2 levels for the single, categorical predictor variable, it can have 3 or more levels. This is called a **one-way ANOVA**. For example, you might have salary as predicted by whether you're faculty, staff, or a student.
**Chapter \@ref(FactorialAnova)** extends the ANOVA model from Chapter \@ref(ComparingSeveralMeans) even further by allowing you to have 2 or more predictors, each of which is categorical with 2 or more levels (e.g., `Degree of Happiness` as predicted by `Gender` and `Class Level` (`freshman`, `sophomore`, `junior`, `senior`)). This is called a **factorial ANOVA**
<br/>
**Unit III** is ***Research Projects***.
***Chapter \@ref(SurveyDesignAndDataCollection)*** is about getting your study designed and your data collected.
***Chapter \@ref(DataPreparationAndAnalyses)*** is concerned with getting the data you have collected in your project into a format that you can use for the analyses, and then carrying out those analyses.
<br/>
**Unit IV** is ***Writing***.
**Chapter \@ref(ReportingResearch)** is an overview of the process and product of a research paper in Psychology.
Subsequent chapters get more specific.
Namely, **Chapter \@ref(WritingIntroductions)** covers how to write the ***Introduction*** section.
**Chapter \@ref(WritingMethodSections)** covers how to write the ***Method*** section.
**Chapter \@ref(WritingResultsSections)**, introduces you to how to report the ***Results*** section.
**Chapter \@ref(WritingDiscussionSections)**, introduces you to how to report the ***Discussion*** section.
And **Chapter \@ref(WritingGeneralDiscussionSections)** shows you how to write the ***General Discussion***, which ties everything together.
<br/>
<!-- Not sure about this yet -->
<!-- This is followed by an ***Appendix*** and a ***References*** section. The Appendix contains... -->
<!-- **MORE MORE MORE MORE** -->
<!-- <br/> -->
## Main outcome of class {#MainOutcomeOfClass}
When you finish this class, as well as this lab, you should not only understand the theoretical underpinnings of data science (a more general label for statistics), but also know how to communicate about it. This kind of knowledge should serve you well for the rest of your life, not only professionally, but also personally. You are bombarded every day with statistics, especially in the news. There is a reason that it is required by most departments at the university: Knowledge of statistics makes you into a more informed citizen in general.
**So let's take the first steps on the way to becoming a data analyst!!**
<!-- <br/> -->
<!-- ## Conventions in this manual {#ConventionsInThisManual} -->
<!-- Every so often, you will encounter a grey box with some message in it. In fact, you have already seen a couple of the (above). There are different varieties of boxes. They are borrowed from @R-bookdown, as follows: -->
<!-- ``` {block2 Note, type="rmdnote"} -->
<!-- **NOTE**: This type of box is a note. We use this when there is a reason to highlight information, though it may not be very important information. -->
<!-- ``` -->
<!-- ``` {block2 Important, type="rmdimportant"} -->
<!-- **IMPORTANT**::This type of box includes something that is important. We use this when there is information we feel compelled to emphasize for the benefit of your learning. -->
<!-- ``` -->
<!-- ``` {block2 Tip, type="rmdtip"} -->
<!-- **TIP**: This type of box is a tip. This is information that will make your life easier in this lab. -->
<!-- ``` -->
<!-- ``` {block2 Caution, type="rmdcaution"} -->
<!-- **CAUTION**: This type of box encompasses a caution. We use this when there is a strong possibility of you making a minor mistake and we want to warn you so that you don't become frustrated. -->
<!-- ``` -->
<!-- ``` {block2 Warning, type="rmdwarning"} -->
<!-- **WARNING**: This type of box is a warning. This is similar to a caution (see above), but more serious. Warnings are for mistakes that can cause you a good deal of grief. -->
<!-- ``` -->
<!--chapter:end:index.Rmd-->