Code Monkey home page Code Monkey logo

practical-applications-in-r-for-psychologists's Introduction

Practical Applications in R for Psychologists


Last updated 2020-10-30.

This Github repo contains all lesson files for Practical Applications in R for Psychologists. The goal is to impart students with the basic tools to process data, describe data (w/ summary statistics and plots), and the foundations of building, evaluating and comparing statistical models in R, focusing on linear regression modeling (using both frequentist and Bayesian approaches).

These topics were taught in the graduate-level course Advanced Research Methods for Psychologists (Psych Dep., Ben-Gurion University of the Negev, Fall semester, 2020), laying the foundation for the topic-focused courses (Spring semester):

Notes:

  • This repo contains only materials relating to Practical Applications in R. Though statistics are naturally discussed in many lessons, the focus is generally on the application and not on the theory.
  • Please note that some code does not work on purpose and without warning, to force students to learn to debug.

Setup

You will need:

  1. A fresh installation of R (preferably version 4.0 or above).
  2. RStudio IDE (optional, but recommended).
  3. The following packages, listed by lesson:
Lesson Packages
01 intro
02 data wrangling haven, tidyverse, readxl, dplyr, parameters, summarytools, psych, DescTools, finalfit, Hmisc, mice
03 plotting dplyr, ggplot2
04 hypothesis testing and power psych, effectsize, ppcor, BayesFactor, pwr
05 regression 101 effectsize, parameters, performance, ggeffects, psychTools
06 categorical predictors and model comparison dplyr, parameters, emmeans, ggeffects, BayesFactor, bayestestR, performance
07 moderation and curvilinear dplyr, performance, emmeans, ggeffects, interactions, parameters, ggplot2
08 generalized linear models parameters, performance, ggeffects, emmeans
09 assumption checks and violations ggeffects, performance, ggResidpanel, parameters, permuco, insight
10 ANOVA afex, emmeans, effectsize, tidyr
11 mediation mediation

You can install all the packages used by running:

# in alphabetical order:

pkgs <- c(
  "afex", "BayesFactor", "bayestestR", "DescTools", "dplyr",
  "effectsize", "emmeans", "finalfit", "ggeffects", "ggplot2",
  "ggResidpanel", "haven", "Hmisc", "insight", "interactions",
  "mediation", "mice", "parameters", "performance", "permuco",
  "ppcor", "psych", "psychTools", "pwr", "readxl", "summarytools",
  "tidyr", "tidyverse"
)

install.packages(pkgs, dependencies = TRUE)
Package Versions The package versions used here:
  • afex 0.28-0 (CRAN)
  • BayesFactor 0.9.12-4.2 (CRAN)
  • bayestestR 0.7.5 (CRAN)
  • DescTools 0.99.38 (CRAN)
  • dplyr 1.0.2 (CRAN)
  • effectsize 0.4.0 (Dev)
  • emmeans 1.5.2-1 (CRAN)
  • finalfit 1.0.2 (CRAN)
  • ggeffects 0.16.0 (CRAN)
  • ggplot2 3.3.2 (CRAN)
  • ggResidpanel 0.3.0 (CRAN)
  • haven 2.3.1 (CRAN)
  • Hmisc 4.4-1 (CRAN)
  • insight 0.10.0 (CRAN)
  • interactions 1.1.3 (CRAN)
  • mediation 4.5.0 (CRAN)
  • mice 3.11.0 (CRAN)
  • parameters 0.9.0 (CRAN)
  • performance 0.5.1 (CRAN)
  • permuco 1.1.0 (CRAN)
  • ppcor 1.1 (CRAN)
  • psych 2.0.9 (CRAN)
  • psychTools 2.0.8 (CRAN)
  • pwr 1.3-0 (CRAN)
  • readxl 1.3.1 (CRAN)
  • summarytools 0.9.6 (CRAN)
  • tidyr 1.1.2 (CRAN)
  • tidyverse 1.3.0 (CRAN)

practical-applications-in-r-for-psychologists's People

Contributors

mattansb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.