friedmanmc | R Documentation |
Test of multiple comparison after Friedman test
friedmanmc(y, groups, blocks,alpha=0.05)
y |
a numeric vector of data values, or a data matrix |
groups |
a vector giving the group for the corresponding elements of 'y' if this is a vector; ignored if 'y' is a matrix. If not a factor object, it is coerced to one. |
blocks |
a vector giving the block for the corresponding elements of 'y' if this is a vector; ignored if 'y' is a matrix. If not a factor object, it is coerced to one. |
alpha |
the significiance level |
Method for formula still not implemented. Formula 7.5a (Siegel & Castellan, 1988 p 180-181) can lead to p-values larger than 1 when differences between groups are small. Eventually, they are set to NA and a warning is generated.
A list of class 'mc' with the following items:
statistic |
statistics used |
alpha |
the significance level |
dif.com |
a data.frame with observed and critical differences, statistical significance at the alpha risk (true/false) and p-value |
Siegel & Castellan (1988) Non parametric statistics for the behavioural sciences. Mc Graw Hill Int. Edt.
friedman.test
; for other functions about median multiple comparison see package 'PMCMRplus'
data(siegelp179)
attach(siegelp179)
friedman.test(score,treatment,block)
friedmanmc(score,treatment,block)
friedmanmc(score,treatment,block,alpha=0.01)
mymatrix<-matrix(score,nc=3)
friedman.test(mymatrix)
friedmanmc(mymatrix)
detach(siegelp179)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.