View source: R/print.efa_kmo.R
| print.efa_kmo | R Documentation |
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()).
## S3 method for class 'efa_kmo'
print(x, ...)
## S3 method for class 'efa_kmo'
format(x, ...)
x |
An object of class |
... |
Not used; for consistency with the generic. |
print() returns its argument x invisibly. format() returns a
character vector with the report lines.
KMO_base <- efa_kmo(test_models$baseline$cormat)
KMO_base
# format() returns the same lines as a character vector:
writeLines(format(KMO_base))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.