Data Preparation
Participants with PGSI total scores of zero or missing values are
excluded. All analyses use the same complete-case set of 23 GRCS items.
The domain grouping changes display order only; it does
not constrain EFA factor loadings.
# Place the CSV beside this .Rmd file, or use the Desktop location.
candidates <- c(
"PsychometricsIR_PG.csv",
"PsychometricsIR_PG(1).csv",
"~/Desktop/PsychometricsIR_PG.csv"
)
existing <- candidates[file.exists(path.expand(candidates))]
if (length(existing) == 0) {
stop("CSV not found. Put PsychometricsIR_PG.csv in the same folder as this Rmd file.")
}
raw_dat <- read.csv(path.expand(existing[1]))
stopifnot("pgsitotal" %in% names(raw_dat))
gr_cs_names <- paste0("grcs_", 1:23)
stopifnot(all(gr_cs_names %in% names(raw_dat)))
# Apply inclusion criterion before any analysis.
dat <- subset(raw_dat, !is.na(pgsitotal) & pgsitotal > 0)
# Keep only GRCS variables, without overwriting the participant dataset.
gr_cs <- dat[, gr_cs_names, drop = FALSE]
gr_cs[] <- lapply(gr_cs, function(x) as.numeric(as.character(x)))
# Use the same participants throughout the report.
complete_rows <- complete.cases(gr_cs)
dat <- dat[complete_rows, , drop = FALSE]
gr_cs <- gr_cs[complete_rows, , drop = FALSE]
# Same 23 GRCS variables, grouped by the five theoretical domains.
# This is the input for EFA and the full grouped correlation plot.
gr_cs_grouped <- gr_cs[, item_order, drop = FALSE]
stopifnot(ncol(gr_cs_grouped) == 23L,
nrow(gr_cs_grouped) == nrow(gr_cs),
!anyNA(gr_cs_grouped))
cat("Original participants:", nrow(raw_dat), "\n")
## Original participants: 200
cat("Excluded PGSI = 0 or missing:",
nrow(raw_dat) - sum(!is.na(raw_dat$pgsitotal) & raw_dat$pgsitotal > 0), "\n")
## Excluded PGSI = 0 or missing: 15
cat("Excluded for missing GRCS responses:", sum(!complete_rows), "\n")
## Excluded for missing GRCS responses: 0
cat("Final analysis sample:", nrow(gr_cs), "\n")
## Final analysis sample: 185
cat("Ordered GRCS columns:", paste(names(gr_cs_grouped), collapse = ", "), "\n")
## Ordered GRCS columns: grcs_1, grcs_6, grcs_11, grcs_16, grcs_3, grcs_8, grcs_13, grcs_18, grcs_4, grcs_9, grcs_14, grcs_19, grcs_22, grcs_23, grcs_2, grcs_7, grcs_12, grcs_17, grcs_21, grcs_5, grcs_10, grcs_15, grcs_20
Descriptive
Statistics
descriptives <- psych::describe(gr_cs_grouped)
knitr::kable(
descriptives[, c("n", "mean", "sd", "median", "min", "max", "skew", "kurtosis")],
digits = 3,
caption = "GRCS item-level descriptive statistics"
)
GRCS item-level descriptive statistics
| grcs_1 |
185 |
3.081 |
1.088 |
3 |
1 |
5 |
-0.638 |
-0.655 |
| grcs_6 |
185 |
2.800 |
1.192 |
3 |
1 |
5 |
-0.148 |
-1.201 |
| grcs_11 |
185 |
2.335 |
1.219 |
2 |
1 |
5 |
0.276 |
-1.334 |
| grcs_16 |
185 |
2.962 |
1.244 |
4 |
1 |
5 |
-0.401 |
-1.327 |
| grcs_3 |
185 |
1.589 |
0.991 |
1 |
1 |
5 |
1.519 |
1.062 |
| grcs_8 |
185 |
2.303 |
1.288 |
2 |
1 |
5 |
0.400 |
-1.329 |
| grcs_13 |
185 |
1.795 |
1.089 |
1 |
1 |
5 |
1.214 |
0.416 |
| grcs_18 |
185 |
2.173 |
1.269 |
2 |
1 |
5 |
0.643 |
-1.009 |
| grcs_4 |
185 |
2.670 |
1.262 |
3 |
1 |
5 |
0.117 |
-1.087 |
| grcs_9 |
185 |
2.405 |
1.217 |
2 |
1 |
5 |
0.381 |
-1.012 |
| grcs_14 |
185 |
2.838 |
1.275 |
3 |
1 |
5 |
-0.166 |
-1.283 |
| grcs_19 |
185 |
2.697 |
1.191 |
3 |
1 |
5 |
-0.038 |
-1.167 |
| grcs_22 |
185 |
2.519 |
1.238 |
2 |
1 |
5 |
0.111 |
-1.405 |
| grcs_23 |
185 |
2.670 |
1.308 |
3 |
1 |
5 |
0.056 |
-1.313 |
| grcs_2 |
185 |
1.789 |
1.018 |
1 |
1 |
5 |
1.103 |
0.225 |
| grcs_7 |
185 |
2.124 |
1.147 |
2 |
1 |
5 |
0.574 |
-1.056 |
| grcs_12 |
185 |
2.286 |
1.220 |
2 |
1 |
5 |
0.462 |
-1.099 |
| grcs_17 |
185 |
2.351 |
1.104 |
2 |
1 |
5 |
0.365 |
-0.863 |
| grcs_21 |
185 |
2.205 |
1.043 |
2 |
1 |
4 |
0.357 |
-1.085 |
| grcs_5 |
185 |
2.854 |
1.292 |
3 |
1 |
5 |
-0.045 |
-1.305 |
| grcs_10 |
185 |
2.676 |
1.307 |
3 |
1 |
5 |
0.073 |
-1.371 |
| grcs_15 |
185 |
2.973 |
1.240 |
3 |
1 |
5 |
-0.238 |
-1.141 |
| grcs_20 |
185 |
3.286 |
1.242 |
4 |
1 |
5 |
-0.636 |
-0.828 |
Item Distributions
Histograms are ordered by the five theoretical GRCS subgroups.
dat_long <- tidyr::pivot_longer(
gr_cs,
cols = everything(),
names_to = "Variable",
values_to = "Value"
)
dat_long$Variable <- factor(dat_long$Variable, levels = item_order)
ggplot(dat_long, aes(x = Value)) +
geom_histogram(
binwidth = 1,
boundary = 0.5,
fill = "darkblue",
color = "black",
alpha = 0.7
) +
facet_wrap(~ Variable, ncol = 6) +
scale_x_continuous(breaks = sort(unique(as.numeric(unlist(gr_cs))))) +
theme_minimal(base_size = 12) +
labs(
title = "Distributions of the 23 GRCS Items",
x = "Response value",
y = "Frequency"
)

Item Correlations
All GRCS Items,
Grouped by Domain
R_grouped <- cor(gr_cs_grouped, use = "complete.obs")
corrplot(
R_grouped,
method = "color", type = "lower",
title = "GRCS Item Correlations by Subgroup",
addCoef.col = "black", tl.cex = 0.6,
cl.cex = 0.7, number.cex = 0.5,
col = palette_grcs, is.corr = TRUE,
order = "original", addgrid.col = "grey85",
mar = c(0, 0, 2, 0)
)

Gambling
Expectancies
corrplot(
cor(gr_cs[, paste0("grcs_", subgroups[[1]]), drop = FALSE]),
method = "color", type = "lower", title = "Gambling Expectancies",
addCoef.col = "black", tl.cex = 1, number.cex = 1,
col = palette_grcs, is.corr = TRUE, mar = c(0, 0, 2, 0)
)

Illusion of
Control
corrplot(
cor(gr_cs[, paste0("grcs_", subgroups[[2]]), drop = FALSE]),
method = "color", type = "lower", title = "Illusion of Control",
addCoef.col = "black", tl.cex = 1, number.cex = 1,
col = palette_grcs, is.corr = TRUE, mar = c(0, 0, 2, 0)
)

Predictive
Control
corrplot(
cor(gr_cs[, paste0("grcs_", subgroups[[3]]), drop = FALSE]),
method = "color", type = "lower", title = "Predictive Control",
addCoef.col = "black", tl.cex = 1, number.cex = 1,
col = palette_grcs, is.corr = TRUE, mar = c(0, 0, 2, 0)
)

Inability to
Stop
corrplot(
cor(gr_cs[, paste0("grcs_", subgroups[[4]]), drop = FALSE]),
method = "color", type = "lower", title = "Inability to Stop",
addCoef.col = "black", tl.cex = 1, number.cex = 1,
col = palette_grcs, is.corr = TRUE, mar = c(0, 0, 2, 0)
)

Interpretive
Bias
corrplot(
cor(gr_cs[, paste0("grcs_", subgroups[[5]]), drop = FALSE]),
method = "color", type = "lower", title = "Interpretive Bias",
addCoef.col = "black", tl.cex = 1, number.cex = 1,
col = palette_grcs, is.corr = TRUE, mar = c(0, 0, 2, 0)
)

Reliability
Analysis
Overall Cronbach’s
Alpha
alpharesults <- psych::alpha(gr_cs_grouped)
knitr::kable(
alpharesults$total[, c("raw_alpha", "std.alpha", "average_r")],
digits = 3,
caption = "Overall GRCS reliability"
)
Overall GRCS reliability
|
0.924 |
0.924 |
0.345 |
Item-Level
Reliability
knitr::kable(
alpharesults$item.stats[, c("n", "raw.r", "r.drop", "mean", "sd")],
digits = 3,
caption = "Item statistics and corrected item-total correlations"
)
Item statistics and corrected item-total correlations
| grcs_1 |
185 |
0.536 |
0.488 |
3.081 |
1.088 |
| grcs_6 |
185 |
0.649 |
0.605 |
2.800 |
1.192 |
| grcs_11 |
185 |
0.677 |
0.635 |
2.335 |
1.219 |
| grcs_16 |
185 |
0.560 |
0.507 |
2.962 |
1.244 |
| grcs_3 |
185 |
0.499 |
0.453 |
1.589 |
0.991 |
| grcs_8 |
185 |
0.684 |
0.640 |
2.303 |
1.288 |
| grcs_13 |
185 |
0.569 |
0.523 |
1.795 |
1.089 |
| grcs_18 |
185 |
0.680 |
0.637 |
2.173 |
1.269 |
| grcs_4 |
185 |
0.739 |
0.702 |
2.670 |
1.262 |
| grcs_9 |
185 |
0.710 |
0.671 |
2.405 |
1.217 |
| grcs_14 |
185 |
0.692 |
0.649 |
2.838 |
1.275 |
| grcs_19 |
185 |
0.480 |
0.423 |
2.697 |
1.191 |
| grcs_22 |
185 |
0.479 |
0.419 |
2.519 |
1.238 |
| grcs_23 |
185 |
0.569 |
0.514 |
2.670 |
1.308 |
| grcs_2 |
185 |
0.657 |
0.621 |
1.789 |
1.018 |
| grcs_7 |
185 |
0.664 |
0.624 |
2.124 |
1.147 |
| grcs_12 |
185 |
0.627 |
0.580 |
2.286 |
1.220 |
| grcs_17 |
185 |
0.528 |
0.478 |
2.351 |
1.104 |
| grcs_21 |
185 |
0.481 |
0.431 |
2.205 |
1.043 |
| grcs_5 |
185 |
0.603 |
0.550 |
2.854 |
1.292 |
| grcs_10 |
185 |
0.665 |
0.619 |
2.676 |
1.307 |
| grcs_15 |
185 |
0.660 |
0.616 |
2.973 |
1.240 |
| grcs_20 |
185 |
0.648 |
0.603 |
3.286 |
1.242 |
Alpha if Each Item Is
Removed
knitr::kable(
alpharesults$alpha.drop[, c("raw_alpha", "std.alpha")],
digits = 3,
caption = "Cronbach's alpha if item deleted"
)
Cronbach’s alpha if item deleted
| grcs_1 |
0.922 |
0.922 |
| grcs_6 |
0.920 |
0.920 |
| grcs_11 |
0.920 |
0.919 |
| grcs_16 |
0.922 |
0.922 |
| grcs_3 |
0.923 |
0.923 |
| grcs_8 |
0.920 |
0.919 |
| grcs_13 |
0.922 |
0.921 |
| grcs_18 |
0.920 |
0.919 |
| grcs_4 |
0.918 |
0.918 |
| grcs_9 |
0.919 |
0.919 |
| grcs_14 |
0.919 |
0.919 |
| grcs_19 |
0.924 |
0.923 |
| grcs_22 |
0.924 |
0.923 |
| grcs_23 |
0.922 |
0.922 |
| grcs_2 |
0.920 |
0.920 |
| grcs_7 |
0.920 |
0.919 |
| grcs_12 |
0.921 |
0.920 |
| grcs_17 |
0.922 |
0.922 |
| grcs_21 |
0.923 |
0.923 |
| grcs_5 |
0.921 |
0.921 |
| grcs_10 |
0.920 |
0.920 |
| grcs_15 |
0.920 |
0.920 |
| grcs_20 |
0.920 |
0.920 |
Factor Retention
KMO and Bartlett’s
Test
R <- cor(gr_cs, use = "complete.obs")
n_complete <- nrow(gr_cs)
kmo_result <- psych::KMO(R)
bartlett_result <- psych::cortest.bartlett(R, n = n_complete)
knitr::kable(
data.frame(
Statistic = c("Overall KMO (MSA)", "Bartlett chi-square", "Bartlett df", "Bartlett p"),
Value = c(kmo_result$MSA, bartlett_result$chisq,
bartlett_result$df, bartlett_result$p.value)
),
digits = 4,
caption = "Factorability checks"
)
Factorability checks
| Overall KMO (MSA) |
0.9113 |
| Bartlett chi-square |
2056.3363 |
| Bartlett df |
253.0000 |
| Bartlett p |
0.0000 |
Conventional Kaiser
Criterion
eigenvalues <- eigen(R, symmetric = TRUE)$values
cat("Number of eigenvalues > 1:", sum(eigenvalues > 1), "\n\n")
## Number of eigenvalues > 1: 4
knitr::kable(
data.frame(
Component = seq_along(eigenvalues),
Eigenvalue = round(eigenvalues, 3),
Greater_than_1 = eigenvalues > 1
),
caption = "Eigenvalues of the item correlation matrix"
)
Eigenvalues of the item correlation matrix
| 1 |
8.745 |
TRUE |
| 2 |
2.238 |
TRUE |
| 3 |
1.552 |
TRUE |
| 4 |
1.127 |
TRUE |
| 5 |
0.994 |
FALSE |
| 6 |
0.770 |
FALSE |
| 7 |
0.751 |
FALSE |
| 8 |
0.725 |
FALSE |
| 9 |
0.631 |
FALSE |
| 10 |
0.613 |
FALSE |
| 11 |
0.556 |
FALSE |
| 12 |
0.529 |
FALSE |
| 13 |
0.504 |
FALSE |
| 14 |
0.471 |
FALSE |
| 15 |
0.406 |
FALSE |
| 16 |
0.399 |
FALSE |
| 17 |
0.358 |
FALSE |
| 18 |
0.347 |
FALSE |
| 19 |
0.297 |
FALSE |
| 20 |
0.278 |
FALSE |
| 21 |
0.269 |
FALSE |
| 22 |
0.247 |
FALSE |
| 23 |
0.191 |
FALSE |
Parallel
Analysis
set.seed(2026)
pararesults <- psych::fa.parallel(gr_cs, fa = "fa", fm = "pa", n.iter = 100)

## Parallel analysis suggests that the number of factors = 3 and the number of components = NA
fa_obs <- as.numeric(pararesults$fa.values)
fa_sim <- as.numeric(pararesults$fa.sim)
fa_resampled <- pararesults$fa.simr
# Align arrays safely if the installed psych version omits resampled values.
len <- length(fa_obs)
fit_length <- function(values, n) {
out <- rep(NA_real_, n)
if (!is.null(values) && length(values) > 0) {
m <- min(n, length(values))
out[seq_len(m)] <- as.numeric(values[seq_len(m)])
}
out
}
eigen_table <- data.frame(
Factor = seq_len(len),
Observed = round(fa_obs, 3),
Simulated = round(fit_length(fa_sim, len), 3),
Resampled = round(fit_length(fa_resampled, len), 3)
)
knitr::kable(eigen_table, caption = "Factor-analysis parallel-analysis eigenvalues")
Factor-analysis parallel-analysis eigenvalues
| 1 |
8.126 |
0.812 |
0.797 |
| 2 |
1.565 |
0.600 |
0.599 |
| 3 |
0.880 |
0.509 |
0.516 |
| 4 |
0.476 |
0.438 |
0.439 |
| 5 |
0.344 |
0.367 |
0.370 |
| 6 |
0.174 |
0.301 |
0.310 |
| 7 |
0.084 |
0.245 |
0.254 |
| 8 |
-0.004 |
0.192 |
0.193 |
| 9 |
-0.039 |
0.141 |
0.140 |
| 10 |
-0.083 |
0.091 |
0.091 |
| 11 |
-0.093 |
0.044 |
0.039 |
| 12 |
-0.118 |
-0.002 |
-0.006 |
| 13 |
-0.149 |
-0.049 |
-0.050 |
| 14 |
-0.178 |
-0.093 |
-0.094 |
| 15 |
-0.200 |
-0.134 |
-0.139 |
| 16 |
-0.214 |
-0.178 |
-0.180 |
| 17 |
-0.246 |
-0.223 |
-0.223 |
| 18 |
-0.286 |
-0.264 |
-0.266 |
| 19 |
-0.315 |
-0.304 |
-0.307 |
| 20 |
-0.368 |
-0.347 |
-0.350 |
| 21 |
-0.373 |
-0.395 |
-0.395 |
| 22 |
-0.409 |
-0.442 |
-0.441 |
| 23 |
-0.447 |
-0.498 |
-0.499 |
Empirical Kaiser
Criterion
ekc_result <- EFAtools::EKC(R, N = n_complete)
print(ekc_result)
## ── Empirical Kaiser Criterion ──────────────────────────────────────────────────
##
## • Braeken & van Assen (2017): 4
Exploratory Factor
Analysis
Principal-axis factoring (fm = "pa") is used for all six
models. Promax allows factors to correlate in models with two or more
factors. Rows are shown in theoretical subgroup order,
but the factor loadings are freely estimated. Loadings with absolute
magnitude below 0.32 are hidden in the printed tables, but remain
estimated in the models. No items are reverse-coded in this report;
verify the GRCS scoring key before interpreting the direction of
loadings.
One-Factor
Solution
EFA1 <- psych::fa(gr_cs_grouped, nfactors = 1, fm = "pa", rotate = "none")
print(EFA1$loadings, cutoff = 0.32, sort = FALSE)
##
## Loadings:
## PA1
## grcs_1 0.502
## grcs_6 0.629
## grcs_11 0.661
## grcs_16 0.528
## grcs_3 0.468
## grcs_8 0.662
## grcs_13 0.546
## grcs_18 0.661
## grcs_4 0.728
## grcs_9 0.696
## grcs_14 0.679
## grcs_19 0.439
## grcs_22 0.433
## grcs_23 0.535
## grcs_2 0.651
## grcs_7 0.656
## grcs_12 0.615
## grcs_17 0.508
## grcs_21 0.457
## grcs_5 0.567
## grcs_10 0.642
## grcs_15 0.638
## grcs_20 0.622
##
## PA1
## SS loadings 8.126
## Proportion Var 0.353
Two-Factor
Solution
EFA2 <- psych::fa(gr_cs_grouped, nfactors = 2, fm = "pa", rotate = "promax")
print(EFA2$loadings, cutoff = 0.32, sort = FALSE)
##
## Loadings:
## PA1 PA2
## grcs_1
## grcs_6 0.410
## grcs_11 0.418
## grcs_16 0.438
## grcs_3 0.621
## grcs_8 0.800
## grcs_13 0.597
## grcs_18 0.702
## grcs_4 0.733
## grcs_9 0.703
## grcs_14 0.528
## grcs_19 0.649
## grcs_22 0.565
## grcs_23 0.576
## grcs_2 0.772
## grcs_7 0.857
## grcs_12 0.827
## grcs_17 0.839
## grcs_21 0.744
## grcs_5 0.570
## grcs_10 0.383 0.327
## grcs_15 0.399
## grcs_20 0.502
##
## PA1 PA2
## SS loadings 5.596 4.156
## Proportion Var 0.243 0.181
## Cumulative Var 0.243 0.424
Three-Factor
Solution
EFA3 <- psych::fa(gr_cs_grouped, nfactors = 3, fm = "pa", rotate = "promax")
print(EFA3$loadings, cutoff = 0.32, sort = FALSE)
##
## Loadings:
## PA1 PA3 PA2
## grcs_1 0.689
## grcs_6 0.718
## grcs_11 0.460
## grcs_16 0.509
## grcs_3 0.752
## grcs_8 0.668
## grcs_13 0.739
## grcs_18 0.840
## grcs_4 0.498
## grcs_9 0.497
## grcs_14 0.328
## grcs_19 0.525
## grcs_22 0.511
## grcs_23 0.364
## grcs_2 0.724
## grcs_7 0.747
## grcs_12 0.777
## grcs_17 0.802
## grcs_21 0.639
## grcs_5 0.622
## grcs_10 0.413
## grcs_15 0.707
## grcs_20 0.653
##
## PA1 PA3 PA2
## SS loadings 3.721 3.468 3.041
## Proportion Var 0.162 0.151 0.132
## Cumulative Var 0.162 0.313 0.445
Four-Factor
Solution
EFA4 <- psych::fa(gr_cs_grouped, nfactors = 4, fm = "pa", rotate = "promax")
print(EFA4$loadings, cutoff = 0.32, sort = FALSE)
##
## Loadings:
## PA1 PA2 PA3 PA4
## grcs_1 0.683
## grcs_6 0.782
## grcs_11 0.533
## grcs_16 0.767
## grcs_3 0.750
## grcs_8 0.699
## grcs_13 0.775
## grcs_18 0.901
## grcs_4 0.462
## grcs_9 0.391 0.474
## grcs_14
## grcs_19 0.537
## grcs_22 0.526
## grcs_23 0.389
## grcs_2 0.680
## grcs_7 0.791
## grcs_12 0.797
## grcs_17 0.853
## grcs_21 0.618
## grcs_5 1.005
## grcs_10 0.539
## grcs_15 0.508
## grcs_20 0.440
##
## PA1 PA2 PA3 PA4
## SS loadings 3.505 3.063 2.574 2.290
## Proportion Var 0.152 0.133 0.112 0.100
## Cumulative Var 0.152 0.286 0.398 0.497
Five-Factor
Solution
EFA5 <- psych::fa(gr_cs_grouped, nfactors = 5, fm = "pa", rotate = "promax")
print(EFA5$loadings, cutoff = 0.32, sort = FALSE)
##
## Loadings:
## PA2 PA1 PA5 PA3 PA4
## grcs_1 0.629
## grcs_6 0.749
## grcs_11 0.507
## grcs_16 0.673
## grcs_3 0.703
## grcs_8 0.584 0.397
## grcs_13 0.733
## grcs_18 0.820
## grcs_4 0.353 0.552
## grcs_9 0.414 0.479
## grcs_14 0.402
## grcs_19 0.482
## grcs_22 0.510
## grcs_23 0.507
## grcs_2 0.704
## grcs_7 0.777
## grcs_12 0.785
## grcs_17 0.848
## grcs_21 0.616
## grcs_5 0.944
## grcs_10 0.334
## grcs_15 0.549
## grcs_20 0.635
##
## PA2 PA1 PA5 PA3 PA4
## SS loadings 3.035 2.881 1.865 1.874 1.595
## Proportion Var 0.132 0.125 0.081 0.081 0.069
## Cumulative Var 0.132 0.257 0.338 0.420 0.489
Six-Factor
Solution
EFA6 <- psych::fa(gr_cs_grouped, nfactors = 6, fm = "pa", rotate = "promax")
print(EFA6$loadings, cutoff = 0.32, sort = FALSE)
##
## Loadings:
## PA2 PA1 PA6 PA4 PA5 PA3
## grcs_1 0.645
## grcs_6 0.737
## grcs_11 0.500
## grcs_16 0.740
## grcs_3 0.584
## grcs_8 0.543 0.389
## grcs_13 0.795
## grcs_18 0.886
## grcs_4 0.752
## grcs_9 0.326 0.517
## grcs_14 0.608
## grcs_19 0.399
## grcs_22 0.550
## grcs_23 0.635
## grcs_2 0.717
## grcs_7 0.781
## grcs_12 0.788
## grcs_17 0.849
## grcs_21 0.617
## grcs_5 1.024
## grcs_10
## grcs_15 0.432
## grcs_20 0.473
##
## PA2 PA1 PA6 PA4 PA5 PA3
## SS loadings 3.066 2.460 2.008 1.997 1.885 0.532
## Proportion Var 0.133 0.107 0.087 0.087 0.082 0.023
## Cumulative Var 0.133 0.240 0.328 0.414 0.496 0.520
Comparison of EFA
Solutions
Model Fit
Indices
efa_models <- list(EFA1, EFA2, EFA3, EFA4, EFA5, EFA6)
# psych::fa may omit a fit index for certain solutions.
# Safely return NA rather than stopping the entire HTML render.
safe_fit <- function(model, field) {
val <- model[[field]]
if (is.null(val) || length(val) == 0) return(NA_real_)
val <- suppressWarnings(as.numeric(val[1]))
if (length(val) == 0 || !is.finite(val)) return(NA_real_)
val
}
efa_fit <- data.frame(
Factors = 1:6,
RMSEA = vapply(efa_models, safe_fit, numeric(1), field = "RMSEA"),
TLI = vapply(efa_models, safe_fit, numeric(1), field = "TLI"),
RMSR = vapply(efa_models, safe_fit, numeric(1), field = "rms"),
BIC = vapply(efa_models, safe_fit, numeric(1), field = "BIC")
)
knitr::kable(
efa_fit,
digits = 3,
row.names = FALSE,
caption = "Fit statistics across EFA solutions (NA = not available)"
)
Fit statistics across EFA solutions (NA = not
available)
| 1 |
0.107 |
0.703 |
0.096 |
-485.889 |
| 2 |
0.077 |
0.844 |
0.062 |
-647.881 |
| 3 |
0.058 |
0.911 |
0.044 |
-672.269 |
| 4 |
0.045 |
0.947 |
0.035 |
-642.414 |
| 5 |
0.026 |
0.981 |
0.028 |
-605.097 |
| 6 |
0.010 |
0.996 |
0.024 |
-545.342 |
Correlations Between
Factors
These correlations are only available for obliquely rotated solutions
with more than one factor.
for (k in 2:6) {
cat("### ", k, "-factor solution\n\n", sep = "")
phi <- efa_models[[k]]$Phi
if (is.null(phi) || length(phi) == 0) {
cat("Factor correlations were not available for this solution.\n\n")
} else {
print(knitr::kable(phi, digits = 3))
cat("\n\n")
}
}
2-factor
solution
| PA1 |
1.000 |
0.626 |
| PA2 |
0.626 |
1.000 |
3-factor
solution
| PA1 |
1.000 |
0.662 |
0.553 |
| PA3 |
0.662 |
1.000 |
0.408 |
| PA2 |
0.553 |
0.408 |
1.000 |
4-factor
solution
| PA1 |
1.000 |
0.467 |
0.687 |
0.586 |
| PA2 |
0.467 |
1.000 |
0.474 |
0.587 |
| PA3 |
0.687 |
0.474 |
1.000 |
0.687 |
| PA4 |
0.586 |
0.587 |
0.687 |
1.000 |
5-factor
solution
| PA2 |
1.000 |
0.422 |
0.505 |
0.555 |
0.380 |
| PA1 |
0.422 |
1.000 |
0.603 |
0.494 |
0.545 |
| PA5 |
0.505 |
0.603 |
1.000 |
0.608 |
0.613 |
| PA3 |
0.555 |
0.494 |
0.608 |
1.000 |
0.543 |
| PA4 |
0.380 |
0.545 |
0.613 |
0.543 |
1.000 |
6-factor
solution
| PA2 |
1.000 |
0.414 |
0.506 |
0.562 |
0.408 |
0.141 |
| PA1 |
0.414 |
1.000 |
0.681 |
0.479 |
0.590 |
0.023 |
| PA6 |
0.506 |
0.681 |
1.000 |
0.631 |
0.684 |
0.107 |
| PA4 |
0.562 |
0.479 |
0.631 |
1.000 |
0.583 |
0.151 |
| PA5 |
0.408 |
0.590 |
0.684 |
0.583 |
1.000 |
0.108 |
| PA3 |
0.141 |
0.023 |
0.107 |
0.151 |
0.108 |
1.000 |
Interpretation
Notes
Factor retention should reflect the parallel analysis, empirical
Kaiser criterion, model fit, item loading patterns, and theoretical
interpretability together. Comparing these exploratory solutions within
the same sample is not an independent confirmation of the factor
structure.