Calculate correlations between SVD and centroid differences in ONA model
correlations.RdComputes Pearson and Spearman correlations between pairwise differences of points and centroids along specified dimensions in an Epistemic Network Analysis (ENA) model.
Usage
correlations(
enaset,
pts = NULL,
cts = NULL,
dims = c(1:2),
direction = "response"
)Arguments
- enaset
An ENA set object containing points and model centroids (typically output from ENA model fitting).
- pts
Optional data frame of points to use. If NULL, points are selected from
enaset$pointsmatching the specified direction.- cts
Optional data frame or matrix of centroids to use. If NULL, centroids are taken from
enaset$model$centroids.- dims
Integer vector specifying which dimensions to use for the correlation (default: c(1,2)).
- direction
Character string specifying which direction(s) to include from
enaset$points$ENA_DIRECTION(default: "response").