psychRstats

Justin Dainer-Best https://jdbest.github.io/psychRstats (Bard College)https://psychology.bard.edu/

Welcome

This is the website for an R package ({psychRstats}) based on Bard College’s Statistics for Psychology (PSY 203, Fall 2020), taught by Assistant Professor of Psychology Justin Dainer-Best. It is intended to be used alongside an undergraduate course in statistics, or an understanding of statistics based on such a course.

Installing the package (see below) will download vignettes and exercises which build on one another to develop skills while also exploring basic statistical concepts like t-tests, ANOVA, and null-hypothesis statistical testing.

The primary website for that course was https://faculty.bard.edu/~jdainerbest/psy-203 with all labs being listed on the lab website; the labs as used in the course are available at https://github.com/jdbest/psy-203/. This repository takes the {learnr} tutorials which were the basis of those labs and deploys them as package vignettes, meaning that you can use this page to go through all 13 labs. (See links above for the full labs and the answers to the exercises.)

Installation

For information on installing R and RStudio, visit the website.

In R, you can install directly from github:

install.packages("devtools")
devtools::install_github("jdbest/psychRstats")
library(psychRstats)

If you’re prompted to update packages, you should respond as prompted – usually with a number (e.g., typing a 1 and then hitting enter). Alternatively, leave the line blank for “don’t update.”

Running tutorials

Once installed, tutorials can be used to learn basic concepts. The basic syntax is as follows:

psychRstats::lab("01-intro-to-r")

Once you’ve gotten through the first tutorial, you’ll want to download the exercises as well.

Downloading exercises

Download all exercises and data in one go when you first get started. After running the above code and installing the {psychRstats} package, make sure you’re in the right working directory.

(We discuss setting a working directory in the first lab, but there’s also an entry about it on the wiki.)

psychRstats::download_exercises()