Learn R Programming

gesca

Overview

The R package gesca implements Generalized Structured Component Analysis (GSCA) and its basic extensions, including constrained single and multiple group analysis, and second order latent variable modeling. It enables users to obtain overall and local model fit measures, parameter estimates with bootstrapped standard errors and confidence intervals, and the total and indirect effects of latent variables and indicators. The package allows users to easily specify their hypothesized relationships among latent variables and/or indicators using an intuitive, text-based syntax. This user-friendly syntax involves the use of indicator names and simple numerical operators, making it straightforward and accessible for users.

Currently, gesca offers basic GSCA methods, i.e., component-based structural equation modeling, wherein all constructs are represented by components or weighted sums of observed variable. For those interested in more recently developed GSCA methods, such as GSCA with measurement errors (GSCA_M) and integrated GSCA (IGSCA), we highly recommend GSCA Pro. This free software provides a graphical user interface, making it simpler to model through path diagrams and visualize results effectively.

We are committed to the continuous development of the gesca R package and plan to soon incorporate the latest GSCA methods, including features similar to those found in GSCA Pro. Stay tuned for these exciting updates!

Resources

Getting started

If you are just getting started with gesca, we recommend starting with the tutorial paper and the examples throughout the package.

Installation

  • The latest development version can be installed from github:
# install.packages("devtools")
  devtools::install_github("QuantMM/gesca")
  • Install from CRAN:
install.packages("gesca")
  • If you use Posit Cloud (previously RStudio Cloud), you can directly access and use the package via this link.

Examples

Some quick examples using the main function and the built-in dataset

library(gesca)
data(gesca.rick2)

# Model specification
myModel <- "
		# Measurement model 
		OP =~ cei1 + cei2 + cei3
		OI =~ ma1 + ma2 + ma3
		AC_J =~ orgcmt1 + orgcmt2 + orgcmt3
		AC_L =~ orgcmt5 + orgcmt6 + orgcmt8
		
		# Structural model 
		OI ~ OP
		AC_J ~ OI
		AC_L ~ OI
"

# A single-group analysis
rick2.GSCA <- gesca.run(myModel, gesca.rick2)
summary(rick2.GSCA)

# Run a multiple-group GSCA with the grouping variable gender:
GSCA.group <- gesca.run(myModel, gesca.rick2, group.name = "gender")
summary(GSCA.group)

Copy Link

Version

Install

install.packages('gesca')

Monthly Downloads

284

Version

1.0.5

License

GPL (>= 2)

Maintainer

Last Published

October 22nd, 2024

Functions in gesca (1.0.5)

latentmeasures

Means, Variances, and Correlations of Latent Variables
effectmeasures

Total and Indirect Effects of Variables
gesca.run

Fit Structural Equation Models using Generalized Structural Component Analysis
qualmeasures

Reliability and Validity Measures
fitmeasures

Indices for Assessment of Model Fit
summary.gesca

A Summary and Parameter Estimates of a Fitted Model
gesca.rick2

Bagozzi's organizational identification example