PSYC 7709G – Using R for Reproducible Research

Spring 2022

Section: MW11-LEC Code: 21199 Location: 5201 James Hall James Hall Time: MoWe 11:00AM - 12:15pm Office Hours: TBD (by appointment on zoom)

Instructor: Matthew Crump, mcrump@brooklyn.cuny.edu

Course Description

This course is designed as a parallel component to PSYC 7706G: Statistical Methods in Psychology – II. Subject areas include: review of descriptive statistics (e.g., mean, variance, standard deviation), simple probability, distributions (e.g., binomial, normal, F), simple correlation and regression, multiple regression, inferential statistics (e.g., hypothesis testing, sources of error), analysis of variance designs (e.g., between subjects and repeated measures factorial designs, fixed, random, & mixed designs), comparisons (a priori, post hoc), and intensity of effect. Relationship between regression and analysis of variance is emphasized. New computational techniques such as Monte-Carlo, Bootstrap, and permutation tests are also presented. This lab course will introduce students to the open-source statistical software environment R and R-studio as a tool to reinforce statistical concepts through simulation techniques, and develop practical skills in data-analysis.

Recommended Prerequisites: Undergraduate Statistics, College Algebra

Course objectives: develop the following skills in relation to content learning objectives in 7706.

  1. Basic scripting in R: use of variables, logic, loops, functions, intrinsics, packages.
  2. Data transformation: processing data-files into a desired form for a desired analysis.
  3. Data visualization: plotting and graphing of data, creation of journal-quality figures in R.
  4. Data Simulation: how to create statistical models of data sets for advanced sample-size planning, as well as evaluating existing findings in the literature.
  5. Communicating reproducible research: how to use R Markdown scripts to create reproducible documents containing statistical analyses.

Course Materials

All of the course materials will be available in a timely fashion on this course website and/or blackboard.

Course Structure

In general, the lab for each week will focus on using R to reinforce statistical concepts that are discussed in the statistics course. Lab instruction will focus on the rudimentary R knowledge needed to demonstrate statistical phenomena of interest, example coding exercises, and a generalization exercise for students to demonstrate their independent knowledge. By completing the assignments, students will create a coding portfolio demonstrating a variety of data-analysis and communication skills.

Course Assessments

There will be two forms of assessment, including 12 weekly lab assignments (72%) and a four part semester long project (28%), serving as the final exam for the course. If this class was run in person, we would be in a computer lab, and much of the time would be reserved for completing the lab assignment (after a lab tutorial) during the lab time. So, the lab assignments will be designed with similar expectations in terms of time needed to complete (and we may decide to use our online meeting time in a similar way).

The final project will involve an integrative data-analysis or statistical demonstration project. Multiple options will be given for the format of this exam, and students may request permission to have their own ideas approved for the final project. The main goal of the final project is to demonstrate mastery of the course concepts culminating in the production of a reproducible analysis.

Week Date Lab Topic Assignment Due
1 Mon, 31st Jan Lab 1 Shaping Data
1 Wed, 1st Feb Lab 1 Shaping Data
2 Mon, 7th Feb Multiple Regression I
2 Wed, 9th Feb Multiple Regression I
3 Mon, 14th Feb Multiple Regression II
3 Wed, 16th Feb Multiple Regression II
4 Mon, 21st Feb College CLOSED
4 Wed, 23rd Feb Semester Project 1
5 Mon, 28th Feb Semester Project 1
5 Wed, 2nd Mar ANOVA
6 Mon 7th Mar ANOVA
6 Wed, 9th Mar ANOVA & Randomization
7 Mon, 14th Mar Comparisons
7 Wed, 16th Mar Comparisons
8 Mon, 21st Mar Semester Project 2
8 Wed, 23rd Mar Semester Project 2
9 Mon, 28th Mar Factorial ANOVA
9 Wed, 30th Mar Factorial ANOVA
10 Mon, 4th Apr Contrast Analyses
10 Wed, 6th Apr Contrast Analyses
11 Mon, 11th Apr Semester Project 3
11 Wed, 13th Apr Semester Project 3
Fri, 15th Apr to Sun, 24th SPRING BREAK
12 Mon, 25th Apr Repeated Measures ANOVA
12 Wed, 27th Apr Repeated Measures ANOVA
13 Mon, 2nd May Nested Designs
13 Wed, 4th May Nested Designs
14 Mon, 9th May WYOR
14 Wed, 11th May WYOR
Mon, 16th May Semester Project 4
Wed, 18th May Semester Project due during Finals week

Assignments and Grading

There are 12 weekly assignments, and a final project. The grading rubric is below:

Assignment Points Total
Weekly assignments 6 72
Semester Project 28
100

University’s policy on Academic Integrity

The faculty and administration of Brooklyn College support an environment free from cheating and plagiarism. Each student is responsible for being aware of what constitutes cheating and plagiarism and for avoiding both. The complete text of the CUNY Academic Integrity Policy and the Brooklyn College procedure for policy implementation can be found at http://www.brooklyn.cuny.edu/bc/policies. If a faculty member suspects a violation of academic integrity and, upon investigation, confirms that violation, or if the student admits the violation, the faculty member MUST report the violation. Students should be aware that faculty may use plagiarism detection software.


Missing an Exam or class

Students are expected to attend all classes. In the event of an emergency, contact me as soon as possible. If you are missing a class for religious reasons refer to the state law regarding non-attendance because of religious beliefs noted in the front matter of the Undergraduate Bulletin and Graduate Bulletin. These may be found on the Academic Calendars, Course Schedules, and Bulletins page of the Registrar’s website. See also the student bereavement policy at http://www.brooklyn.cuny.edu/web/about/initiatives/policies/bereavement.php.


Accessibility

It is important to me that the course be accessible to all students. In order to receive disability-related academic accommodations students must first be registered with the Center for Student Disability Services. Students who have a documented disability or suspect they may have a disability are invited to set up an appointment with the Director of the Center for Student Disability Services, at 718-951-5538. If you have already registered with the Center for Student Disability Services please provide your professor with the course accommodation form and discuss your specific accommodation with him/her.


Email Correspondence

I will regularly use e-mail to send out announcements, changes in the syllabus, reminders about tests or due dates etc. It is your responsibility to check e-mail regularly to keep up-to-date with these announcements. I will use the e-mail address you have listed with the College. Therefore, please make sure that this is indeed the correct address.

General Help with Research and Writing

The Library maintains a collection of links to sites that can assist you with proper citation format and paraphrasing and quoting other authors at Research & Writing Help. The Learning Center has writing tutors available to help you with your writing http://lc.brooklyn.cuny.edu/.

The best learning is done in conversation with others, whether they are people—classmates, teachers, friends—or texts—books, articles, essays, poems, films etc. It should not be a solitary process. However, the assignments that you hand in for this course must be done on your own, should represent your own thinking, and should be original work that you have done for this particular course. A good way to balance these two seemingly contradictory approaches (collaborative learning and original individually-produced work) without knowingly—or, even unwittingly—resorting to plagiarism or other forms of academic misconduct is to learn and meticulously observe the rules for citing the work of others (this could be the great point your roommate made that you used in your paper, it could be a well-turned phrase from an academic essay, or it could be anything in between). It is your responsibility to learn what constitutes plagiarism and the correct rules for citing sources—read the information on the following website carefully: http://www.brooklyn.cuny.edu/bc/policies/. The bottom line is: passing off anyone’s words or ideas as your own for any reason whatsoever is plagiarism.