get_rafs_top_rep_tuples_from_popcnts | R Documentation |
This helper function works on results of get_rafs_rep_tuples_popcnts
to obtain the desired number of top (most common) representatives' tuples at the chosen number of clusters.
get_rafs_top_rep_tuples_from_popcnts(
rep_tuples_popcnts,
n_clusters,
n_tuples = 1
)
rep_tuples_popcnts |
tuples' popcnts for the chosen variant as obtained from |
n_clusters |
the desired number of clusters |
n_tuples |
the desired number of top tuples |
A list of top tuples (each tuple being a vector of representatives).
library(MDFS)
mdfs_omp_set_num_threads(1) # only to pass CRAN checks
data(madelon)
rafs_results <- run_rafs(madelon$data, madelon$decision, 2, c(12345))
rafs_rep_tuples_popcnts <- get_rafs_rep_tuples_popcnts(rafs_results, 5)
get_rafs_top_rep_tuples_from_popcnts(rafs_rep_tuples_popcnts$stig_single, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.