Skip to main content
HomeR

Structural Equation Modeling with lavaan in R

Learn how to create and assess measurement models used to confirm the structure of a scale or questionnaire.

Start Course for Free
4 hours14 videos45 exercises9,024 learnersTrophyStatement of Accomplishment

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.
Group

Training 2 or more people?

Try DataCamp for Business

Loved by learners at thousands of companies


Course Description

When working with data, we often want to create models to predict future events, but we also want an even deeper understanding of how our data is connected or structured. In this course, you will explore the connectedness of data using using structural equation modeling (SEM) with the R programming language using the lavaan package. SEM will introduce you to latent and manifest variables and how to create measurement models, assess measurement model accuracy, and fix poor fitting models. During the course, you will explore classic SEM datasets, such as the Holzinger and Swineford (1939) and Bollen (1989) datasets. You will also work through a multi-factor model case study using the Wechsler Adult Intelligence Scale. Following this course, you will be able to dive into your data and gain a much deeper understanding of how it all fits together.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    One-Factor Models

    Free

    In this chapter, you will dive into creating your first structural equation model with lavaan. You will learn important terminology, how to build, and run models. You will create a one-factor model of mental test abilities using the classic Holzinger and Swineford (1939) dataset.

    Play Chapter Now
    Model Specification
    50 xp
    Build Text Speed Model
    100 xp
    Build Political Democracy Model
    100 xp
    Model Analysis
    50 xp
    Analyze Text Speed Model
    100 xp
    Summarize Political Democracy
    50 xp
    Model Assessment
    50 xp
    Examine Standardized Loadings
    100 xp
    Explore Fit Indices
    100 xp
    Examine Political Democracy
    100 xp
  2. 3

    Troubleshooting Model Errors and Diagrams

    Structural equation models do not always run smoothly, and in this chapter, you will learn how to troubleshoot Heywood cases which are common errors. You will also learn how to diagram your model in R using the semPlot library.

    Play Chapter Now
  3. 4

    Full Example and an Extension

    This chapter examines the WAIS-III IQ Scale and its structural properties. You will use your skills from the first three chapters to create various models of the WAIS-III, troubleshoot errors in those models, and create diagrams of the final model.

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

datasets

WAIS-III IQ Data for Hierarchical ModelLatent Variable Heywood Case DataNegative Variance Heywood Case Data

collaborators

Collaborator's avatar
Chester Ismay
Collaborator's avatar
Becca Robins
Erin Buchanan HeadshotErin Buchanan

Professor at Harrisburg University of Science and Technology

See More

What do other learners have to say?

Join over 15 million learners and start Structural Equation Modeling with lavaan in R today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.