SelectionProportions {sharp}R Documentation

Selection/co-membership proportions

Description

Extracts selection proportions (for stability selection) or co-membership proportions (for consensus clustering).

Usage

SelectionProportions(stability, argmax_id = NULL)

ConsensusMatrix(stability, argmax_id = NULL)

Arguments

stability

output of VariableSelection, GraphicalModel, BiSelection, or Clustering.

argmax_id

optional indices of hyper-parameters. If argmax_id=NULL, the calibrated hyper-parameters are used.

Value

A vector or matrix of proportions.

See Also

VariableSelection, GraphicalModel, BiSelection, Clustering

Examples


# 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)



[Package sharp version 1.4.6 Index]