View source: R/stability_output.R
SelectionProportions | R Documentation |
Extracts selection proportions (for stability selection) or co-membership proportions (for consensus clustering).
SelectionProportions(stability, argmax_id = NULL)
ConsensusMatrix(stability, argmax_id = NULL)
stability |
output of |
argmax_id |
optional indices of hyper-parameters. If
|
A vector or matrix of proportions.
VariableSelection
, GraphicalModel
,
BiSelection
, Clustering
# Stability selection
set.seed(1)
simul <- SimulateRegression(pk = 50)
stab <- VariableSelection(xdata = simul$xdata, ydata = simul$ydata)
SelectionProportions(stab)
# Consensus clustering
set.seed(1)
simul <- SimulateClustering(
n = c(30, 30, 30), nu_xc = 1, ev_xc = 0.5
)
stab <- Clustering(xdata = simul$data)
ConsensusMatrix(stab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.