Skip to contents

print() shows an efa_group() result as a report in sections: a header with the groups, the common number of factors, the estimator, the rotation, and the alignment; the matched Tucker congruences per group pair (with bootstrap confidence intervals when a bootstrap was run); a per-pair summary of the loading differences and the largest flagged cells; and, when invariance = TRUE, the similarity verdicts. format() returns the same report as a character vector; print() is cat(format(x), sep = "\n"). The lines follow the active console theme, so they are plain when colours are disabled. print() does not draw a plot; use plot.efa_group().

Usage

# S3 method for class 'efa_group'
print(x, digits = 3, ...)

# S3 method for class 'efa_group'
format(x, digits = 3, ...)

Arguments

x

An object of class efa_group (output from efa_group()).

digits

Integer. The number of decimal places the reported values are rounded to. Default is 3.

...

Not used; for consistency with the generic.

Value

print() returns its argument x invisibly. format() returns a character vector with the report lines.

See also

Examples

g <- rep(c("g1", "g2"), length.out = nrow(GRiPS_raw))
mg <- efa_group(GRiPS_raw, groups = g, n_factors = 1)
mg
#> ── Multigroup exploratory factor analysis ──────────────────────────────────────
#> 
#> 2 groups (g1, g2) · 1 factor · PAF extraction · unrotated
#> Aligned to a symmetric consensus target.
#> N: g1 = 405, g2 = 405
#> 
#> ── Factor congruence ───────────────────────────────────────────────────────────
#> 
#> Tucker's congruence between the aligned group loadings (matched factors):
#> 
#>            F1
#> g1 vs g2  .999
#> 
#> ── Loading differences ─────────────────────────────────────────────────────────
#> 
#> Absolute loading differences by group pair:
#> 
#>           mean   max  rmse  flagged
#> g1 vs g2  .025  .075  .033      0/8
#> 
#> No cell is flagged (|Δ| ≥ .1).

# format() returns the same lines as a character vector:
writeLines(format(mg))
#> ── Multigroup exploratory factor analysis ──────────────────────────────────────
#> 
#> 2 groups (g1, g2) · 1 factor · PAF extraction · unrotated
#> Aligned to a symmetric consensus target.
#> N: g1 = 405, g2 = 405
#> 
#> ── Factor congruence ───────────────────────────────────────────────────────────
#> 
#> Tucker's congruence between the aligned group loadings (matched factors):
#> 
#>            F1
#> g1 vs g2  .999
#> 
#> ── Loading differences ─────────────────────────────────────────────────────────
#> 
#> Absolute loading differences by group pair:
#> 
#>           mean   max  rmse  flagged
#> g1 vs g2  .025  .075  .033      0/8
#> 
#> No cell is flagged (|Δ| ≥ .1).