plot.farm.test {FarmTest} | R Documentation |
Plot function of FarmTest
Description
This is the plot function of S3 objects with class "farm.test
". It produces the histogram of estimated means.
Usage
## S3 method for class 'farm.test'
plot(x, ...)
Arguments
x |
A |
... |
Further arguments passed to or from other methods. |
Details
For two-sample FarmTest, the histogram is based on the difference: estimated means of sample X
- estimated means of sample Y
.
Value
No variable will be returned, but a histogram of estimated means will be presented.
See Also
farm.test
, print.farm.test
and summary.farm.test
.
Examples
n = 50
p = 100
K = 3
muX = rep(0, p)
muX[1:5] = 2
epsilonX = matrix(rnorm(p * n, 0, 1), nrow = n)
BX = matrix(runif(p * K, -2, 2), nrow = p)
fX = matrix(rnorm(K * n, 0, 1), nrow = n)
X = rep(1, n) %*% t(muX) + fX %*% t(BX) + epsilonX
output = farm.test(X)
plot(output)
[Package FarmTest version 2.2.0 Index]