Learn R Programming

TukeyC (version 1.1-5)

make.TukeyC.test: Make Tukey Test

Description

This function implements the Tukey test for balanced or unbalanced designs and schemes.

Usage

make.TukeyC.test(r=r,
                   MSE=MSE,
                   m.inf=m.inf,
                   ord=ord,
                   sig.level=sig.level,
                   dfr=dfr,
                   bal=bal,
                   mt=mt,
                   round=round)

Arguments

r

A vector of the number of repicates of each level of the factor being tested.

MSE

A vector of length 1 giving the mean squared error.

m.inf

A matrix of the levels of the factor being tested in decreasing order.

ord

A vector of ordered levels of the factor being tested.

sig.level

A vector of length 1 giving the level of significance of the test.

dfr

A vector of length 1 giving the degrees of freedom of MSE.

bal

A vector of length 1 giving the information wheter the experiment is or not balanced.

mt

The model table.

round

Integer indicating the number of decimal places.

Value

A list with 7 slots containing the most important results of the test performed:

Table

Table of means of the factors

Means

The means of the factors

Result

The result of the Tukey test

Sig.Level

The significance of the test

Diff_Prob

A matrix with the observed means differences (upper.tri) and respective probalities (lower.tri)

MSD

The minimum significative difference

Replicates

The replicate number for each factor