01. SEMinR Lectures Series: Partial Least Squares Structural Equation Modelling (PLS-SEM) in R
Based on Research With Fawad's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
R is the statistical computing language used to import/clean data and run PLS path models for PLS-SEM.
Briefing
Partial least squares structural equation modeling (PLS-SEM) in R is built on a simple foundation: R is the statistical computing language used to import and clean data and then run PLS path models, while RStudio is the integrated development environment that makes writing and executing that code practical. The core takeaway is that getting comfortable with R and RStudio is the prerequisite for doing PLS-SEM work in R—everything from model estimation to mediation, moderation, and higher-order constructs depends on that workflow.
R is described as a free, open-source statistical computing language. Because its underlying code is publicly available, improvements and new features can be contributed by a broad community, which in turn makes R code more reproducible, shareable, testable, and scalable for larger automated applications. The transcript emphasizes that R’s open-source ecosystem includes hundreds of libraries and extensive documentation, so users can find support and add functionality as needed.
In practical terms, R can be run from an operating system command line or directly from the R console. Still, the recommended approach is to use an IDE, since it provides a more efficient coding environment. An IDE is where users write code, manage projects, and run analyses without constantly switching contexts. That IDE in this workflow is RStudio.
The session then turns to setup. Before RStudio can be used, R itself must be installed. After downloading and installing R, users download RStudio—specifically the free “RStudio Desktop” option—and install it as an executable. Once installed, RStudio is opened from the system start menu.
Inside RStudio, the layout is broken into functional areas: a console for running commands, a script editor for writing and organizing code, and panels for items like environment history, connections, and tutorials. The bottom-right area is used for file navigation, viewing plots, and managing packages. Package installation is shown as a concrete example: users can install a package (such as “seminr”) from the install interface, and then see installed packages listed for later use. Documentation and help pages for packages are also accessible from the interface, supporting learning and troubleshooting.
Finally, the transcript frames the broader learning path for the series: after an overview of R and RStudio, the sessions move into structural equation modeling in R using the sem in r package, including evaluation of reflective and formative measurement models, assessment of structural models, and analyses such as mediation, moderation, and high-order constructs. A free, open-access Springer book is recommended as the reference resource for the series, authored by Hair, Thomas Hult, Christian Ringle, Maros A. Sarstedt, Nicholas P. Stanks, and Somia Ray, with Professor Somia Ray noted for answering queries during the series.
Cornell Notes
R is the free, open-source statistical computing language used to import/clean data and run PLS-SEM (PLS path models). RStudio is the recommended IDE for writing and executing R code, making the workflow easier than using only a command line or console. The setup sequence is: install R first, then install “RStudio Desktop” (free), and open RStudio from the start menu. Within RStudio, users work across the console, script editor, and panels for files, plots, packages, and help documentation. Mastery of this environment is positioned as the foundation for later sem in r package work, including reflective/formative measurement evaluation, structural model assessment, and mediation/moderation/high-order constructs.
Why does the transcript treat R as the core requirement for PLS-SEM work?
What does “open source” change about how R code is used in practice?
How does RStudio improve the day-to-day workflow compared with running R directly?
What are the main RStudio areas a beginner should learn first?
What is the basic process for installing and using an R package in RStudio?
How does this session connect R/RStudio setup to later PLS-SEM topics?
Review Questions
- What are the practical differences between running R from a command line/console versus using RStudio as an IDE?
- How does the transcript connect R’s open-source nature to reproducibility and scalability?
- List the steps required to get ready to run PLS-SEM in R, from installing R to installing a package like “seminr.”
Key Points
- 1
R is the statistical computing language used to import/clean data and run PLS path models for PLS-SEM.
- 2
R is free and open source, with community-driven improvements that support reproducible and scalable code.
- 3
RStudio is the recommended IDE for writing and executing R code more efficiently than using only a command line or console.
- 4
Installation should follow a sequence: install R first, then install the free “RStudio Desktop,” and open RStudio from the system menu.
- 5
RStudio’s layout matters: console and script editor for coding, plus panels for files, plots, packages, and help documentation.
- 6
Package installation in RStudio is done through the packages panel (example: installing “seminr”), after which documentation becomes available for learning and troubleshooting.
- 7
The series roadmap uses this setup as the foundation for sem in r package work, including reflective/formative measurement evaluation and mediation/moderation/high-order constructs.