Learn R Programming

maxstat (version 0.6-8)

plot.maxtest: Print and Plot Standardized Statistics

Description

Printing and ploting method of objects of class maxtest

Usage

## S3 method for class 'maxtest':
plot(x, xlab=NULL, ylab=NULL, \dots)
## S3 method for class 'x, \dots':
print}{maxtestundefined
## S3 method for class 'mmaxtest':
plot(x, xlab=NULL, ylab=NULL, nrow=2, \dots)
## S3 method for class 'x, \dots':
print}{mmaxtestundefined

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.
...
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
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