test_sra | R Documentation |
Compute a Kolmogorov-Smirnoff-like test for Smooth quantiles of a matrix of sequential rank agreements
test_sra(object, nullobject, weights = 1)
object |
An object created with |
nullobject |
An object created with |
weights |
Either a single value or a vector of the same length as the number of item with the weight that should be given to specific depths. |
A single value corresponding to the p-value
Claus Ekstrøm <ekstrom@sund.ku.dk>
# setting with 3 lists
mlist <- matrix(cbind(1:8,c(1,2,3,5,6,7,4,8),c(1,5,3,4,2,8,7,6)),ncol=3)
# compute sequential rank agreements
x=sra(mlist)
# compute rank agreement of 5 random permutations
null=random_list_sra(mlist,n=15)
# now extract point-wise quantiles according to confidence level
test_sra(x,null)
# compare to when we use the result of the first permutation run
test_sra(null[,1],null[,-1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.