Learn R Programming

asremlPlus (version 4.4.46)

print.test.summary: Prints a data.frame containing a test.summary.

Description

Prints a test.summary (also a choose.summary) with or without a title and with p-values limited to 4-digits.

Usage

# S3 method for test.summary
print(x, which.print = c("title", "table"), 
      omit.columns = NULL, response = NULL, ...)

Value

No value is returned, but x is printed, possibly with a title.

Arguments

x

A object that, ideally, is of class test.summary.

which.print

A character specifying the aspects of the test.summary to print. Possible values are some combination of title, table and all.

omit.columns

A character specifying the columns of the test.summary table to be omitted from the print. If NULL, none are omitted.

response

A character specifying the name of the response that the test.summary table is based on and is to be printed in the heading for the table. If NULL, no response name is printed.

...

further arguments passed to print, but is only operational when the table is also printed.

Author

Chris Brien

See Also

print.wald.tab, print.asrtests, as.asrtests, asremlPlus-package

Examples

Run this code
if (FALSE) {
data(Wheat.dat)
current.asr <- asreml(yield ~ Rep + WithinColPairs + Variety, 
                      random = ~ Row + Column + units,
                      residual = ~ ar1(Row):ar1(Column), 
                      data=Wheat.dat)
current.asrt <- as.asrtests(current.asr, NULL, NULL)
current.asrt <- rmboundary.asrtests(current.asrt)
# Test Row autocorrelation
current.asrt <- testresidual(current.asrt, "~ Row:ar1(Column)", 
                             label="Row autocorrelation", simpler=TRUE)
print(current.asrt$test.summary)
}

Run the code above in your browser using DataLab