Skip to contents

print() shows the reliability coefficients for the general factor and the group factors, for a single group or for each group: the reliability coefficients (omega total, omega hierarchical, and omega subscale, standardized Cronbach's alpha, and the H index) and the common-variance indices (the explained common variance, ECV, and the percent of uncontaminated correlations, PUC). format() assembles the same report and returns it 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 (for example when captured into a file or stripped with cli::ansi_strip()).

Usage

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

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

Arguments

x

An object of class efa_reliability.

digits

Integer. The number of decimal places the coefficients 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

Other reliability coefficients: efa_reliability(), efa_schmid_leiman()

Examples

efa_mod <- efa_fit(test_models$baseline$cormat, N = 500, n_factors = 3,
                   estimator = "PAF", rotation = "promax")
rel <- efa_reliability(efa_mod)
rel
#> 
#> Total variance from the correlation matrix.
#> 
#> Correlated-factors solution: a factor's total omega counts the true score
#> variance its composite receives from every factor, through its cross-loadings
#> and any factor correlations; its subscale omega counts only that factor's own
#> contribution.
#> 
#> ── Reliability coefficients ────────────────────────────────────────────────────
#> 
#>         tot   sub  alpha    H
#> total  .883         .868
#> F1     .769  .734   .768  .760
#> F2     .765  .680   .763  .753
#> F3     .745  .667   .743  .738

# format() returns the same lines as a character vector:
writeLines(format(rel))
#> 
#> Total variance from the correlation matrix.
#> 
#> Correlated-factors solution: a factor's total omega counts the true score
#> variance its composite receives from every factor, through its cross-loadings
#> and any factor correlations; its subscale omega counts only that factor's own
#> contribution.
#> 
#> ── Reliability coefficients ────────────────────────────────────────────────────
#> 
#>         tot   sub  alpha    H
#> total  .883         .868
#> F1     .769  .734   .768  .760
#> F2     .765  .680   .763  .753
#> F3     .745  .667   .743  .738