
Introduction to SEMinR
This session on on SEMinR Package will focus on
- Loading and Cleaning the Data
- Specifying the Measurement Models
- Specifying the Structural Model
- Estimating the Model
- Summarizing the Model
- Bootstrapping the Model
This session on on SEMinR Package will focus on
There are four steps to specify and estimate a structural equation model using SEMinR:
When Data file is not in the same folder as R Script
Important
composite(“Put in Construct Name in Quotes”, multi_items(“Construct Code”, Starting Number:Ending Number), weights = mode_A);
Collaborative Culture construct with its indicator variables CC1, CC2, CC3, CC4, CC5, CC6:
composite(“CUSA”, single_item(“cusa”))
The program code facilitates the specification of standard measurement models. However, the constructs() function also allows specifying more complex models, such as interaction terms (Memon et al., 2019) and higher-order constructs (Sarstedt et al., 2019). We will discuss the interaction_term() function for specifying interactions in more detail later.
Step 2 in Creating a Model – Identify the variables in your study and Put them as Measurement Model.
Here simple_mm is an object which stores the constructs in the study.
<- Can be considered as an equal sign that assigns the constructs to the object.
constructs function holds the variables from the study, defined as composite (as discussed in the last slide)
paths(from = c(“Vision”, “Development”, “Rewards”), to = “Collaborative Culture”).
Here simple_sm is an object which stores the relationships in the study.
<- Can be considered as an equal sign that assigns the constructs to the object.
relationships function holds the proposed relationships identified as individual paths
The code mentioned above, is the depiction of the following framework.
Step 3 in creating a model
This function applies the arguments shown in . Table. Please note that arguments with default values do not need to be specified but will revert to the default value when not specified.
We now estimate the PLS-SEM model by using the estimate_pls() function with arguments
data = datas,
measurement_model = simple_mm,
structural_model = simple_sm,
inner_weights = path_weighting,
missing = mean_replacement, and
missing_value = “-99”
and assign the output to simple_model.
It is like running PLS Algorithm in SmartPLS
Note that the arguments for inner_weights, missing, and missing_value can be omitted if the default arguments are used. This is equivalent to the previous code block:
Following is a brief review of the steps that have been discussed in SEMinR tutorials.
The next step is Plotting and Writing Results – plot() and Write.csv
Hair Jr, J. F., Hult, G. T. M., Ringle, C. M., Sarstedt, M., Danks, N. P., & Ray, S. (2021). Partial Least Squares Structural Equation Modeling (PLS-SEM) Using R: A Workbook.
The tutorials on SEMinR are based on the mentioned book. The book is open source and available for download under this link.