R Learning Resources for Psychology Teachers and Students

This is a collection of materials/resources used in the R workshop offered by Dr. Manyu Li for UL Lafayette social science students in 2021. All resources used in the workshop are shared/linked on this page. All weekly notes and codes are licensed under CC-BY-SA 4.0 unless otherwise stated. For other resources redirected from this page, please refer to the authors’ website for licensing information.

Getting Started/Comprehensive Resources:

Week 1 - Basic R knowledge

Learning Objectives

  • define/describe basic concepts/components in R, including objects, class, vectors, factors, indexing, data frames, list, and matrices.
  • identify basic operators and functions.
  • install and request packages.
  • subset data frames, select columns/rows from data frames and remove unwanted samples from data.
  • create new variables and recode variables.

Homework:

Week 2 - Psychometrics; Variable Manipulation

Learning objectives

  • Reverse scale items
  • Compute scale scores
  • Find scale reliability
  • Conduct exploratory and confirmatory factor analysis

Week 3 - Categorical IVs, Tables, and Plots

Week 4 - Some linear models

Learning objectives

  • Conduct regression models (lm)
  • Conduct moderation models with simple slope analysis (emmeans)
  • Conduct mediation models (psych)
  • Conduct path model/SEM analysis (lavaan)

Advanced Resources

RMarkdown, knitr, and papaja

Multi-level Modeling/Mixed Effects Model (lme4)