View source: R/stability_output.R
Stable | R Documentation |
Extracts stable results for stability selection or consensus clustering.
Stable(stability, argmax_id = NULL, linkage = "complete")
SelectedVariables(stability, argmax_id = NULL)
Adjacency(stability, argmax_id = NULL)
Clusters(stability, linkage = "complete", argmax_id = NULL)
stability |
output of |
argmax_id |
optional indices of hyper-parameters. If
|
linkage |
character string indicating the type of linkage used in
hierarchical clustering to define the stable clusters. Possible values
include |
A binary vector or matrix encoding the selection status (1
if
selected, 0
otherwise) in stability selection or stable cluster
membership in consensus clustering.
VariableSelection
, BiSelection
,
GraphicalModel
, Clustering
# Variable selection
set.seed(1)
simul <- SimulateRegression(pk = 20)
stab <- VariableSelection(xdata = simul$xdata, ydata = simul$ydata)
SelectedVariables(stab)
Stable(stab)
# Graphical model
set.seed(1)
simul <- SimulateGraphical(pk = 10)
stab <- GraphicalModel(xdata = simul$data)
Adjacency(stab)
Stable(stab)
# Clustering
set.seed(1)
simul <- SimulateClustering(
n = c(30, 30, 30),
nu_xc = 1
)
stab <- Clustering(xdata = simul$data)
Clusters(stab)
Stable(stab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.