infoCluster | R Documentation |
dynEGA
Performs hierarchical clustering using Jensen-Shannon distance followed by the Louvain algorithm with consensus clustering. The method iteratively identifies smaller and smaller clusters until there is no change in the clusters identified
infoCluster(dynEGA.object, plot.cluster = TRUE, ...)
dynEGA.object |
A |
plot.cluster |
Boolean (length = 1).
Should plot of optimal and hierarchical clusters be output?
Defaults to |
... |
Additional arguments to be passed on to
|
Returns a list containing:
clusters |
A vector corresponding to cluster each participant belongs to |
clusterTree |
The dendogram from |
clusterPlot |
Plot output from results |
JSD |
Jensen-Shannon Distance |
Hudson Golino <hfg9s at virginia.edu> & Alexander P. Christensen <alexander.christensen at Vanderbilt.Edu>
plot.EGAnet
for plot usage in EGAnet
# Obtain data
sim.dynEGA <- sim.dynEGA # bypasses CRAN checks
## Not run:
# Dynamic EGA individual and population structure
dyn.ega1 <- dynEGA.ind.pop(
data = sim.dynEGA, n.embed = 5, tau = 1,
delta = 1, id = 25, use.derivatives = 1,
ncores = 2, corr = "pearson"
)
# Perform information-theoretic clustering
clust1 <- infoCluster(dynEGA.object = dyn.ega1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.