summary.farm.test: Summary function of FarmTest

Description Usage Arguments Details Value See Also Examples

View source: R/FarmTest.R

Description

This is the summary function of S3 objects with class "farm.test".

Usage

1
2
## S3 method for class 'farm.test'
summary(object, ...)

Arguments

object

A farm.test object.

...

Further arguments passed to or from other methods.

Details

For two-sample FarmTest, the first column is the difference: estimated means of sample X - estimated means of sample Y.

Value

A data frame including the estimated means, p-values, adjusted p-values and significance for all the features will be presented.

See Also

farm.test, print.farm.test and plot.farm.test.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)
summary(output)

FarmTest documentation built on Sept. 7, 2020, 9:07 a.m.