Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. comparison.pvalue <- function(method1, method2){
  2.     if (method1 == method2) {
  3.         return 1
  4.     }
  5.  
  6.     for (i in 1:length(index.rank.dunn.test$comparisons)){
  7.         if ((method1 %in% index.rank.dunn.test$comparisons[i]) &
  8.             (method2 %in% index.rank.dunn.test$comparisons[i])
  9.         ) {
  10.             p.value <- index.rank.dunn.test$P.adjusted[i]
  11.             continue
  12.         }
  13.     }
  14.  
  15.     return(p.value)
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement