The 611/612/613 R Revolution!

This post describes the effort to translate the Psychology Department’s graduate level statistics courses into R. The goal is to provide R code for all of the lab handouts for all three courses making up the data analysis sequence: PSY611, PSY612, and PSY613.

See the bitbucket repository to get the handouts for 611, 612, and 613: https://bitbucket.org/rosemm/611-612-613-r-code

To work on this project, please download the handouts and look through for any computation done in SPSS, and figure out how to do it in R instead. Also keep an eye out for simulations and demonstrations (most of which are currently done with Java apps online), and see if you can translate those to R as well – they will probably take the form of R scripts students could run, and then change certain parameters and re-run to see, for example, how changing sample size affects the variance of the sampling distribution of the mean. This code should all be written for an audience with no assumed R experience, so please make sure to include lots of clarifying comments/annotations. For example, it would be super helpful to include one or more comments about the output that the code generates, drawing students’ attention to the relevant pieces and explaining how it differs from the SPSS output.

If you’re working on this project, consider commenting on this post to let others know where you’re directing your efforts (e.g. “I’m working on 611 Lab 1: EDA”). It’s fine for multiple people to work on the same handouts – we might uncover some cool alternate solutions that way! – but we’ll get the most done if we can allocate our efforts efficiently. Please save your code as an R file with the name of the course and handout it belongs to (e.g. “611_Lab1.r”) and post to BitBucket.

If you come across cool resources while you’re working on this or if you have questions/comments/advice/whatever relevant to this project, please comment on this post.

3 comments

  1. rosem@uoregon.edu

    If you want to contribute to this project, send me an email with your BitBucket username and I’ll add you as an admin on the repository. Click “Issues” in the bar at the top to see a list of the tasks people are working on, and if you want to start a new task, record it as an issue. If you have questions, let me know.
    Here’s the bitbucket repository with all the files (including the lab handout documents) for this project: https://bitbucket.org/rosemm/611-612-613-r-code

  2. rosem@uoregon.edu

    Hey guys, I just had a crazy idea. We were talking about how to format the handouts to integrate in the most sensible way with the r code, etc., and assumed that we wanted to produce documents vs. webpages. What if we move it all to html? The lab handouts could be online (maybe a UO blog?), searchable and accessible for everyone forever. And we could use tags, categories, etc. to link them together so students could pull up the ANOVA handout from 611 when ANOVAs come up again in 613 in the context of MLM, for example. And we could link right to John’s beautiful Shiny demonstrations, etc. It would be awesome.
    The major draw back I see is that the webpage platform doesn’t provide a good mechanism for note taking. Lots of students take notes on their handouts, and I think that’s important/valuable. Of course, we could also send it to pdf and print off hard copies for note taking, but I’d like to facilitate electronic note taking if possible.