Coder Social home page Coder Social logo

rcleoni / structural-equation-modeling-for-psychologists Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mattansb/structural-equation-modeling-for-psychologists

0.0 1.0 0.0 2.42 MB

Lesson files used in the Structural Equation Modeling for Psychologists.

License: Other

R 100.00%

structural-equation-modeling-for-psychologists's Introduction

Structural Equation Modeling foR Psychologists


Last updated 2020-10-30.

This Github repo contains all lesson files for SEM - Practical Applications in R. The goal is to impart students with the basic tools to construct, evaluate and compare Structural Equation Models (SEM; w/ plots), using lavaan.

These topics were taught in the graduate-level course Structural Equation Modeling (Psych Dep., Ben-Gurion University of the Negev, Spring, 2019). This course assumes basic competence in R (importing, regression modeling, plotting, etc.), along the lines of Practical Applications in R for Psychologists.

Notes:

  • This repo contains only materials relating to Practical Applications in R, and does not contain any theoretical or introductory materials.
  • Please note that some code does not work on purpose, to force students to learn to debug.

Setup

You will need:

  1. A fresh installation of R (preferably version 3.6 or above).
  2. RStudio IDE (optional, but recommended).
  3. The following packages, listed by lesson:
Lesson Packages
01 path analysis lavaan, tidySEM, dplyr, ggplot2, semPlot
02 latent variables and hypothesis testing lavaan, semTools, dplyr, semPlot, psychTools, bayestestR
03 cross-lagged panel model lavaan, semPlot, bayestestR
04 multiple group analysis lavaan, bayestestR, semPlot, semTools
05 latent growth curve modeling lavaan, semPlot
06 assumption checks lavaan, semTools, car
07 moderation in lavaan lavaan, semTools
08 EFA parameters, psych, lavaan, semPlot, dplyr, tidyr, psychTools, nFactors

You can install all the packages used by running:

# in alphabetical order:

pkgs <- c(
  "bayestestR", "car", "dplyr", "ggplot2", "lavaan", "nFactors",
  "parameters", "psych", "psychTools", "semPlot", "semTools", "tidyr",
  "tidySEM"
)

install.packages(pkgs, dependencies = TRUE)
Package Versions The package versions used here:
  • bayestestR 0.7.5 (CRAN)
  • car 3.0-10 (CRAN)
  • dplyr 1.0.2 (CRAN)
  • ggplot2 3.3.2 (CRAN)
  • lavaan 0.6-7 (CRAN)
  • nFactors 2.4.1 (CRAN)
  • parameters 0.9.0 (CRAN)
  • psych 2.0.9 (CRAN)
  • psychTools 2.0.8 (CRAN)
  • semPlot 1.1.2 (CRAN)
  • semTools 0.5-3 (CRAN)
  • tidyr 1.1.2 (CRAN)
  • tidySEM 0.1.3 (CRAN)

Other Useful Resources

structural-equation-modeling-for-psychologists's People

Contributors

mattansb avatar

Watchers

James Cloos 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.