Learn R Programming

nestedRanksTest (version 0.2)

print.htest_boot: Print result held in htest_boot object

Description

print.htest_boot prints a return value held in a list of class 'htest_boot', as returned by e.g., nestedRanksTest. Class 'htest_boot' extends class 'htest' by including group weights, the number of bootstrap iterations, and the complete null distribution. The latter is not printed by this function; it may be visualised with plot.htest_boot.

Usage

"print"(x, digits = getOption("digits"), prefix = "\t", ...)

Arguments

x
Value of class 'htest_boot' as returned by e.g., nestedRanksTest.
digits
Number of digits or significant digits to use in output. Similar to other print methods, this method pays attention to the "digits" option.
prefix
String, passed to print.htest
...
Additional arguments passed to print.htest.

Value

The value of x is returned invisibly.

See Also

plot.htest_boot for a graphical plot of test results, print.htest for the print method of the base class, and nestedRanksTest for one test that returns an object of class 'htest_boot'

Examples

Run this code
data(woodpecker_multiyear)
## n.iter set to 1000 to shorten completion time
res <- nestedRanksTest(Distance ~ Year | Granary, n.iter = 1000,
                       data = woodpecker_multiyear,
                       subset = Species == "agrifolia")
class(res)
print(res)

Run the code above in your browser using DataLab