Learn R Programming

EFAtools (version 1.1.0)

print.efa_kmo: Print and format an efa_kmo object

Description

print() shows the Kaiser-Meyer-Olkin (KMO) criterion computed by efa_kmo(): a titled section with a verdict on the overall KMO value (and what it implies for the suitability of the data for factor analysis), the overall value, and the per-variable KMO values. 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 efa_kmo
print(x, ...)

# S3 method for efa_kmo format(x, ...)

Value

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

Arguments

x

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

...

Not used; for consistency with the generic.

Examples

Run this code
KMO_base <- efa_kmo(test_models$baseline$cormat)
KMO_base

# format() returns the same lines as a character vector:
writeLines(format(KMO_base))

Run the code above in your browser using DataLab