frt.paired: Full randomization paired test

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

View source: R/frt.paired.R

Description

Performs a full randomization test on paired vectors of data.

Usage

1
frt.paired(x, y, alternative = "two.sided")

Arguments

x

a numeric vector

y

a numeric vector

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.

Details

x and y must have the same length.

The function tests 2^n possible arrangements, where n is the length of x and y. This number (just as computational times and memory requirements) grows rapidly with n.

Value

numeric

the probability of the null hypothesis of no difference between means.

Author(s)

Giangiacomo Bravo

References

Box, G.E.P, Hunter, J.S. and Hunter, G.W. (2005), Statistics for Experimenters: Design, Innovation, and Discovery. Second Edition. Hoboken, NJ: Wiley.

See Also

frt

Examples

1
2
3
4
5
# Boys' shoes example in Box et al. (2005, 81--84)
data(shoes)
attach(shoes)
frt.paired(matA, matB, alt="l")
detach(shoes)

frt documentation built on May 2, 2019, 6:34 a.m.

Related to frt.paired in frt...