calculateSRDDistribution {rSRD} | R Documentation |
calculateSRDDistribution
Description
R interface to calculate the SRD distribution that corresponds to the data.
Usage
calculateSRDDistribution(
data_matrix,
option = "f",
tie_probability = 0,
output_to_file = FALSE
)
Arguments
data_matrix |
A DataFrame. |
option |
A char to specify how ties are generated in the simulation. The following options are available:
|
tie_probability |
The probability with which ties can occur. |
output_to_file |
Boolean flag to enable file output. |
Value
A List containing the SRD distribution and related descriptive statistics. xx1 value indicates the 5 percent significance threshold. SRD values falling between xx1 and xx19 are not distinguishable from SRD scores of random rankings, while an SRD score higher than xx19 indicates that the solution ranks the objects in a reverse order (with 5 percent significance).
Author(s)
Balázs R. Sziklai sziklai.balazs@krtk.hu, Linus Olsson linusmeol@gmail.com
Examples
df <- data.frame(
A=c(32, 52, 44, 44, 47),
B=c(73, 75, 65, 76, 70),
C=c(60, 59, 57, 55, 60),
D=c(35, 24, 44, 83, 47),
E=c(41, 52, 46, 50, 65))
calculateSRDDistribution(df, option = 'p', tie_probability = 0.5)