Learn R Programming

EFAtools (version 0.7.1)

print.EFA: Print EFA object

Description

Print Method showing a summarized output of the EFA function.

Usage

# S3 method for EFA
print(
  x,
  cutoff = 0.3,
  digits = 3,
  max_name_length = 10,
  ci = c("auto", "none", "separate"),
  ci_filter = c("salient", "all", "nonzero"),
  details = c("standard", "compact", "full"),
  diagnostics = TRUE,
  diagnostics_top_n = 10,
  residual_cutoff = 0.1,
  residual_top_n = 10,
  show_structure = FALSE,
  sort_loadings = c("none", "primary", "clustered"),
  show_loading_legend = TRUE,
  cross_loading_cutoff = cutoff,
  min_primary_gap = 0.2,
  min_salient_per_factor = 3,
  max_factors_per_block = NULL,
  show_mi_diagnostics = NULL,
  ...
)

# S3 method for EFA_POOLED print( x, cutoff = 0.3, digits = 3, max_name_length = 10, ci = c("auto", "none", "separate"), ci_filter = c("salient", "all", "nonzero"), details = c("standard", "compact", "full"), diagnostics = TRUE, diagnostics_top_n = 10, residual_cutoff = 0.1, residual_top_n = 10, show_structure = FALSE, sort_loadings = c("none", "primary", "clustered"), show_loading_legend = TRUE, cross_loading_cutoff = cutoff, min_primary_gap = 0.2, min_salient_per_factor = 3, max_factors_per_block = NULL, show_mi_diagnostics = NULL, ... )

# S3 method for EFA format( x, cutoff = 0.3, digits = 3, max_name_length = 10, ci = c("auto", "none", "separate"), ci_filter = c("salient", "all", "nonzero"), details = c("standard", "compact", "full"), diagnostics = TRUE, diagnostics_top_n = 10, residual_cutoff = 0.1, residual_top_n = 10, show_structure = FALSE, sort_loadings = c("none", "primary", "clustered"), show_loading_legend = TRUE, cross_loading_cutoff = cutoff, min_primary_gap = 0.2, min_salient_per_factor = 3, max_factors_per_block = NULL, show_mi_diagnostics = NULL, ... )

# S3 method for EFA_POOLED format( x, cutoff = 0.3, digits = 3, max_name_length = 10, ci = c("auto", "none", "separate"), ci_filter = c("salient", "all", "nonzero"), details = c("standard", "compact", "full"), diagnostics = TRUE, diagnostics_top_n = 10, residual_cutoff = 0.1, residual_top_n = 10, show_structure = FALSE, sort_loadings = c("none", "primary", "clustered"), show_loading_legend = TRUE, cross_loading_cutoff = cutoff, min_primary_gap = 0.2, min_salient_per_factor = 3, max_factors_per_block = NULL, show_mi_diagnostics = NULL, ... )

Arguments

x

list. An object of class EFA to be printed

cutoff

numeric. Passed to print.LOADINGS. The number above which to print loadings in bold. Default is .3.

digits

numeric. Passed to print.LOADINGS Number of digits to round the loadings to (default is 3).

max_name_length

numeric. Passed to print.LOADINGS. The maximum length of the variable names to display. Everything beyond this will be cut from the right.

ci

character. Whether to print confidence intervals for loadings and factor intercorrelations, if available. "auto" and "separate" print separate CI sections when CIs were computed; "none" suppresses these sections. Default is "auto".

ci_filter

character. Which loading CIs to print. "salient" prints CIs for loadings with absolute values greater than or equal to cutoff; "all" prints all loading CIs; "nonzero" prints loading CIs that exclude zero. Default is "salient".

details

character. Amount of information to print. "standard" prints the regular output, "compact" suppresses longer diagnostic sections, and "full" additionally prints available optional sections.

diagnostics

logical. Whether to print model and simple-structure diagnostics. Default is TRUE.

diagnostics_top_n

numeric. Maximum number of item-level diagnostic entries to print per diagnostic type.

residual_cutoff

numeric. Absolute residual cutoff used in the residual diagnostics section. Default is .1.

residual_top_n

numeric. Maximum number of residuals to print. Use Inf to print all residuals above residual_cutoff.

show_structure

logical. Whether to print the structure matrix for oblique solutions when available. Default is FALSE.

sort_loadings

character. Optional row sorting for loading tables. See print.LOADINGS.

show_loading_legend

logical. Whether to print a compact legend for loading-table styling. Default is TRUE.

cross_loading_cutoff

numeric. Cutoff for counting cross-loadings in the diagnostics. Defaults to cutoff.

min_primary_gap

numeric. Minimum desired absolute difference between the largest and second-largest absolute loading of an item. Used only for descriptive diagnostics.

min_salient_per_factor

numeric. Minimum number of salient indicators per factor used in the diagnostics. Default is 3.

max_factors_per_block

numeric or NULL. Maximum number of factor columns per loading-table block. If NULL, this is chosen from the console width.

show_mi_diagnostics

logical or NULL. Whether to print a compact MI uncertainty summary for pooled EFAs when available. NULL prints it only for details = "full".

...

Further arguments passed to print.LOADINGS.

Details

The method is shared by single-imputation `EFA` objects and pooled `EFA_POOLED` objects. It prints, in order, a compact model header, optional diagnostics, the loading table, optional confidence-interval tables, variance accounted for, model fit, bootstrap notes, optional multiple-imputation uncertainty diagnostics, and residual diagnostics.

For `EFA_POOLED` objects, the header and diagnostics report the number of imputations and the alignment/pooling settings stored in the object. Loading and factor-correlation confidence intervals are printed only when `boot.CI` is present. Pooled intervals created by `EFA_POOLED()` are labelled as bootstrap/MI intervals.

`ci_filter` controls which loading intervals are shown. `salient` reports intervals for loadings whose absolute point estimate is at least `cutoff`; `nonzero` reports intervals excluding zero; and `all` reports every finite interval.

Examples

Run this code
mod <- EFA(test_models$baseline$cormat, n_factors = 3, N = 500,
           method = "PAF", rotation = "promax")
mod

# With SEs and CIs, needs raw-data
mod <- EFA(GRiPS_raw, n_factors = 1, method = "ML", se = "np-boot")
mod
# with additional infos
print(mod, details = "full")
# omit some diagnostic parts
print(mod, details = "compact")

Run the code above in your browser using DataLab