Learn R Programming

FarmTest (version 2.0.1)

print.farm.test: Summary and print function of FarmTest

Description

This is the print function of S3 objects with class "farm.test". It summarizes and prints the outputs of farm.test function.

Usage

# S3 method for farm.test
print(x, ...)

Arguments

x

A farm.test object.

Further arguments passed to or from other methods.

Value

No variable will be returned, but a brief summary of FarmTest will be displayed.

See Also

farm.test

Examples

Run this code
# NOT RUN {
n = 50
p = 100
K = 3
muX = rep(0, p)
muX[1:5] = 2
set.seed(2019)
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)
output
# }

Run the code above in your browser using DataLab