Learn R Programming

pgirmess (version 1.3.8)

friedmanmc: Multiple comparisons after Friedman test

Description

Test of multiple comparison after Friedman test

Usage

friedmanmc(y, groups, blocks,probs=0.05)

Arguments

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.
probs
a probability for the critical difference.

Value

  • A list of class 'mc' with the following items:
  • statisticstatistics used
  • p.valuethe p value of the critical difference
  • dif.coma data.frame with observed and critical differences

Details

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.

References

Siegel & Castellan (1988) Non parametric statistics for the behavioural sciences. Mc Graw Hill Int. Edt.

See Also

friedman.test

Examples

Run this code
data(siegelp179)
  attach(siegelp179)
  
  friedman.test(score,treatment,block)
  friedmanmc(score,treatment,block)
  friedmanmc(score,treatment,block,probs=0.01)
  
  mymatrix<-matrix(score,nc=3)
  friedman.test(mymatrix)
  friedmanmc(mymatrix)

Run the code above in your browser using DataLab