This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref:https://www.r-statistics.com/tag/friedman-test/ | |
friedman.test.with.post.hoc <- function(formu, data, to.print.friedman = T, to.post.hoc.if.signif = T, to.plot.parallel = T, to.plot.boxplot = T, signif.P = .05, color.blocks.in.cor.plot = T, jitter.Y.in.cor.plot =F) | |
{ | |
# formu is a formula of the shape: Y ~ X | block | |
# data is a long data.frame with three columns: [[ Y (numeric), X (factor), block (factor) ]] | |
# Note: This function doesn't handle NA's! In case of NA in Y in one of the blocks, then that entire block should be removed. | |
# Loading needed packages |
OlderNewer