Learn R Programming

EGAnet (version 0.4)

entropyFit: Entropy Fit Indices

Description

Computes the fit of a factor model using empirical entropy Lower values of the entropy fit indices suggest better factor fit

Usage

entropyFit(data, structure)

Arguments

data

A dataset

structure

A vector representing the structure (numbers or labels for each item). Can be theoretical factors or the structure detected by EGA

Value

Returns a list containing:

Ind.Entropy

The entropy of the dataset

Mean.Entropy

The average entropy across the factors

Joint.Entropy

The joint entropy across the factors

H.Miller.Madow

Miller-Madow correction for the entropy of the dataset

Mean.Entropy.MM

Miller-Madow correction for the average entropy across the factors

Joint.Miller.Madow

Miller-Madow correction for the joint entropy across the factors

Total.Correlation

The total correlation of the dataset

Total.Correlation.MM

Miller-Madow correction for the total correlation of the dataset

Entropy.Fit

The Entropy Fit Index

Entropy.Fit.MM

Miller-Madow correction for the Entropy Fit Index

Average.Entropy

The average entropy of the dataset

See Also

EGA to estimate the number of dimensions of an instrument using EGA and CFA to verify the fit of the structure suggested by EGA using confirmatory factor analysis.

Examples

Run this code
# NOT RUN {
#estimate EGA model
ega.wmt <- EGA(data = wmt2[,7:24], model = "glasso")

#compute entropy indices
entropyFit(data = wmt2[,7:24], structure = ega.wmt$wc)
# }

Run the code above in your browser using DataLab