ec: Easy contrast

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/ec.R

Description

Performs contrasts of means

Usage

1
ec(mg1, mg2, sdg1, sdg2, df)

Arguments

mg1

Means of the group 1

mg2

Means of the group 2

sdg1

Standard error of the group 1

sdg2

Standard error of the group 2

df

Degree of freedom from error

Value

Returns t test for contrast

Author(s)

Emmanuel Arnhold <emmanuelarnhold@yahoo.com.br>

References

KAPS, M. and LAMBERSON, W. R. Biostatistics for Animal Science: an introductory text. 2nd Edition. CABI Publishing, Wallingford, Oxfordshire, UK, 2009. 504p.

See Also

ea1,ea2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Kaps and Lamberson(2009, pg 254)

data(data1)

r<-ea1(data1, design=1)
r[2]

# first contrast
mg1=312;mg2=c(278,280); sdg1=7.7028;sdg2=c(7.7028,7.7028); df=12
ec(mg1,mg2,sdg1,sdg2,df)

# second contrast
mg1=280;mg2=278; sdg1=7.7028;sdg2=7.7028; df=12
ec(mg1,mg2,sdg1,sdg2,df)

easyanova documentation built on July 28, 2019, 1:05 a.m.