Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. comparison.pvalue <- function(index1, index2){
  2. if (index1 != index2){
  3. for (i in 1:length(index.rank.dunn.test$comparisons)){
  4. if ((index1 %in% index.rank.dunn.test$comparisons[i]) &
  5. (index2 %in% index.rank.dunn.test$comparisons[i])){
  6. j <- i
  7. }
  8. }
  9. # i <- which(str_detect(index.rank.dunn.test$comparisons, index1) &
  10. # str_detect(index.rank.dunn.test$comparisons, index2))
  11. p.value <- index.rank.dunn.test$P.adjusted[j]
  12. } else{
  13. p.value <- 1
  14. }
  15.  
  16. output <- p.value
  17. return(output)
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement