Learn R Programming

staRank (version 1.14.0)

RankSummary-class: Class RankSummary

Description

A class containing different rankings of a dataset further summary information like the stable set sizes, a correlation matrix of the rankings, the name of the base ranking method, the function call and if needed the Pi matrix of the stabilityRanking.

Slots

baseRank:
a numeric vector containing the base ranking

stabRank:
a numeric vector containing the stability ranking
avrgRank:
a numeric vector containing the average ranking

stableSetSize:
the sizes of the stable sets for each cutoff
rankCor
Spearman's rank correlation coefficient for the three rankings

method
the used method
Pi:
a matrix containing

Accessors

Methods

RankSummary objects can be created using the constructor RankSummary, however this is most likely not needed.

Usage

RankSummary(baseRank = 0, stabRank = 0, avrgRank = 0, stableSetSize = 0, rankCor = matrix(NA, nrow = 3, ncol = 3), method = "", Pi = matrix(NA, nrow = 1, ncol = 1))

Arguments

baseRank
a numeric vector containing the base ranking
stabRank
a numeric vector containing the stability ranking
avrgRank
a numeric vector containing the average ranking
stableSetSize
the sizes of the stable sets for each cutoff
rankCor
Spearman's rank correlation coefficient for the three rankings
method
the used method
Pi
a matrix containing

Examples

Run this code
# overview of RankSummary class
showClass("RankSummary")
# generate dataset
d<-replicate(4,sample(1:10,10,replace=FALSE))
rownames(d)<-letters[1:10]
# run default stability ranking
s<-stabilityRanking(d)
# using an accessor functions on the RankSummary object
stabRank(s)
rankCor(s)
# create a new empty object of class RankSummary using the constructor
RankSummary()

Run the code above in your browser using DataLab