# order.group: Ordering the treatments according to the multiple comparison In agricolae: Statistical Procedures for Agricultural Research

## 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

 ```1 2``` ```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

`orderPvalue `

## Examples

 ```1 2 3 4 5 6 7 8 9``` ```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) ```

### Example output

```  trt means  M N std.err
1   D    72  a 4     2.4
2   F    58  b 3     3.1
3   E    49 bc 3     1.0
4   B    40 cd 4     2.0
5   C    35  d 3     1.5
6   A    20  e 4     1.2
```

agricolae documentation built on Sept. 13, 2017, 1:03 a.m.