R: Ordering the treatments according to the multiple comparison

order.group {agricolae} | R Documentation

## Ordering the treatments according to the multiple comparison

### Description

This function allows us to compare the treatments averages or the adding of their ranges with the minimal significant difference which can vary from one comparison to another one.

### Usage

    order.group(trt, means, N, MSerror, Tprob, std.err, parameter=1, snk=0,
    DFerror=NULL,alpha=NULL,sdtdif=NULL,vartau=NULL,console)

### Arguments

`trt` | Treatments
`means` | Means of treatment
`N` | Replications
`MSerror` | Mean square error
`Tprob` | minimum value for the comparison
`std.err` | standard error
`parameter` | Constante 1 (Sd), 0.5 (Sx)
`snk` | Constante = 1 (Student Newman Keuls)
`DFerror` | Degrees of freedom of the experimental error
`alpha` | Level of risk for the test
`sdtdif` | standard deviation of difference in BIB
`vartau` | matrix var-cov in PBIB
`console` | logical, print output

### Details

This function was changed by orderPvalue function that use agricolae. Now the grouping in agricolae is with the probability of the treatments differences and alpha level.

### Value

The output is data frame.

`trt` | Treatment Levels, Factor
`means` | height, Numeric
`M` | groups levels, Factor
`N` | replications, Numeric
`std.err` | Standard error, Numeric

### Author(s)

Felipe de Mendiburu

### See Also

`orderPvalue`

### Examples

    library(agricolae)
    treatments <- c("A","B","C","D","E","F")
    means<-c(20,40,35,72,49,58)
    std.err<-c(1.2, 2, 1.5, 2.4, 1, 3.1)
    replications <- c(4,4,3,4,3,3)
    MSerror <- 55.8
    value.t <- 2.1314
    groups<-order.group(treatments,means,replications,MSerror,value.t,std.err,console=FALSE)
    print(groups)

[Package agricolae version 1.2-8 Index]