calc_aris | R Documentation |
This function constructs an ari_matrix
class object from a solutions_df
class object. The ARI matrix stores pairwise adjusted Rand indices for all
cluster solutions as well as a numeric order for the solutions data frame
based on the hierarchical clustering of the ARI matrix.
calc_aris(
sol_df,
processes = 1,
verbose = FALSE,
dist_method = "euclidean",
hclust_method = "complete"
)
sol_df |
Solutions data frame containing cluster solutions to calculate pairwise ARIs for. |
processes |
Specify number of processes used to complete calculations
|
verbose |
If TRUE, output progress to console. |
dist_method |
Distance method to use when calculating sorting order to of the matrix. Argument is directly passed into stats::dist. Options include "euclidean", "maximum", "manhattan", "canberra", "binary", or "minkowski". |
hclust_method |
Agglomerative method to use when calculating sorting
order by |
om_aris ARIs between clustering solutions of an solutions data frame
dl <- data_list(
list(subc_v, "subcortical_volume", "neuroimaging", "continuous"),
list(pubertal, "pubertal_status", "demographics", "continuous"),
uid = "unique_id"
)
sc <- snf_config(dl, n_solutions = 3)
sol_df <- batch_snf(dl, sc)
calc_aris(sol_df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.