File: similarity_values.Rd

package info (click to toggle)
r-cran-stablelearner 0.1-5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: makefile: 2
file content (39 lines) | stat: -rw-r--r-- 1,056 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\name{similarity_values}
\alias{similarity_values}

\title{Extracting Similarity Values}

\description{
  Extract similarity values from object returned by \code{\link{stability}} for
  further illustration or analysis.
}

\usage{
  similarity_values(x, reverse = TRUE)
}

\arguments{
  \item{x}{an object of class \code{"stablelearner"} or 
    \code{"stablelearnerList"} from which the similarity values are extracted.}
  \item{reverse}{logical. If \code{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.}

\seealso{\code{\link{stability}}, \code{\link{summary.stablelearnerList}}}

\examples{
\donttest{
library("partykit")
res <- ctree(Species ~ ., data = iris)
stab <- stability(res)
similarity_values(stab)
}
}

\keyword{resampling}
\keyword{similarity}