EGA.estimate | R Documentation |
EGA
for Multidimensional StructuresA basic function to estimate EGA
for multidimensional structures.
This function does not include the unidimensional check and it does not
plot the results. This function can be used as a streamlined approach
for quick EGA
estimation when unidimensionality or visualization
is not a priority
EGA.estimate(
data,
n = NULL,
corr = c("auto", "cor_auto", "cosine", "pearson", "spearman"),
na.data = c("pairwise", "listwise"),
model = c("BGGM", "glasso", "TMFG"),
algorithm = c("leiden", "louvain", "walktrap"),
verbose = FALSE,
...
)
data |
Matrix or data frame. Should consist only of variables to be used in the analysis |
n |
Numeric (length = 1).
Sample size if |
corr |
Character (length = 1).
Method to compute correlations.
Defaults to
For other similarity measures, compute them first and input them
into |
na.data |
Character (length = 1).
How should missing data be handled?
Defaults to
|
model |
Character (length = 1).
Defaults to
|
algorithm |
Character or
|
verbose |
Boolean (length = 1).
Whether messages and (insignificant) warnings should be output.
Defaults to |
... |
Additional arguments to be passed on to
|
Returns a list containing:
network |
A matrix containing a network estimated using
|
wc |
A vector representing the community (dimension) membership
of each node in the network. |
n.dim |
A scalar of how many total dimensions were identified in the network |
cor.data |
The zero-order correlation matrix |
n |
Number of cases in |
Alexander P. Christensen <alexpaulchristensen at gmail.com> and Hudson Golino <hfg9s at virginia.edu>
Original simulation and implementation of EGA
Golino, H. F., & Epskamp, S. (2017).
Exploratory graph analysis: A new approach for estimating the number of dimensions in psychological research.
PLoS ONE, 12, e0174035.
Introduced unidimensional checks, simulation with continuous and dichotomous data
Golino, H., Shi, D., Christensen, A. P., Garrido, L. E., Nieto, M. D., Sadana, R., & Thiyagarajan, J. A. (2020).
Investigating the performance of Exploratory Graph Analysis and traditional techniques to identify the number of latent factors: A simulation and tutorial.
Psychological Methods, 25, 292-320.
Compared all igraph
community detection algorithms, simulation with continuous and polytomous data
Christensen, A. P., Garrido, L. E., Guerra-Pena, K., & Golino, H. (2023).
Comparing community detection algorithms in psychometric networks: A Monte Carlo simulation.
Behavior Research Methods.
plot.EGAnet
for plot usage in EGAnet
# Obtain data
wmt <- wmt2[,7:24]
# Estimate EGA
ega.wmt <- EGA.estimate(data = wmt)
# Estimate EGA with TMFG
ega.wmt.tmfg <- EGA.estimate(data = wmt, model = "TMFG")
# Estimate EGA with an {igraph} function (Fast-greedy)
ega.wmt.greedy <- EGA.estimate(
data = wmt,
algorithm = igraph::cluster_fast_greedy
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.