Learn R Programming

maxstat (version 0.7-24)

plot.maxtest: Print and Plot Standardized Statistics

Description

Printing and ploting method of objects of class maxtest

Usage

"plot"(x, xlab=NULL, ylab=NULL, ...) "print"(x, digits = getOption("digits"), ...) "plot"(x, xlab=NULL, ylab=NULL, nrow=2, ...) "print"(x, digits = getOption("digits"), ...)

Arguments

x
an object of class maxtest or mmaxtest.
xlab
label of x-axis.
ylab
label of y-axis.
nrow
number of rows for multiple plots at one page.
digits
number of significant digits to be printed.
...
additional arguments to plot or print.htest.

Details

The standardized statistics are plotted. If alpha was given in maxstat.test the appropriate significance bound is plotted as a red line. print.maxtest is just a wrapper to print.htest.

Examples

Run this code

set.seed(29)

x <- sort(runif(20))
y <- rbinom(20, 1, 0.5)
mydata <- data.frame(c(x,y))

mod <- maxstat.test(y ~ x, data=mydata, smethod="Median", 
                    pmethod="HL", alpha=0.05)
print(mod)
plot(mod)

Run the code above in your browser using DataLab