genTEFI | R Documentation |
Computes the fit (Generalized TEFI) of a hierarchical or correlated bifactor
dimensionality structure (or hierEGA
objects) using Von Neumman's entropy
when the input is a correlation matrix. Lower values suggest better fit of a structure to the data
genTEFI(data, structure = NULL, verbose = TRUE)
data |
Matrix, data frame, or |
structure |
List (length = levels).
A list containing the hierarchical structure.
Each list element corresponds to increasing levels (1 = first level, 2 = second level, etc.).
The length of the first element (first level) should be the same as the number of variables
in |
verbose |
Boolean (length = 1).
Whether messages and (insignificant) warnings should be output.
Defaults to |
Returns a levels + 1
columns data frame of the Generalized Total Entropy
Fit Index using Von Neumman's entropy (VN.Entropy.Fit
) (first column) as well as
each individual's levels entropy
Hudson Golino <hfg9s at virginia.edu> and Alexander P. Christensen <alexpaulchristensen@gmail.com>
# Example using network scores
opt.hier <- hierEGA(
data = optimism, scores = "network",
plot.EGA = FALSE # No plot for CRAN checks
)
# Compute the Generalized Total Entropy Fit Index
genTEFI(opt.hier)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.