similarity_values: Extracting Similarity Values

View source: R/stablelearner.R

similarity_valuesR Documentation

Extracting Similarity Values

Description

Extract similarity values from object returned by stability for further illustration or analysis.

Usage

  similarity_values(x, reverse = TRUE)

Arguments

x

an object of class "stablelearner" or "stablelearnerList" from which the similarity values are extracted.

reverse

logical. If reverse = TRUE (default), the similarity values are transformed (reversed) such that higher values indicate a higher stability.

Value

A numeric array of dimension 3 containing similarity values. The dimensions represent repetitions, results (fitted model objects) and similarity measures.

See Also

stability, summary.stablelearnerList

Examples


library("partykit")
res <- ctree(Species ~ ., data = iris)
stab <- stability(res)
similarity_values(stab)


stablelearner documentation built on March 18, 2022, 7:59 p.m.