plot.maxtest: Print and Plot Standardized Statistics

Description Usage Arguments Details Examples

Description

Printing and ploting method of objects of class maxtest

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'maxtest'
plot(x, xlab=NULL, ylab=NULL, ...)
## S3 method for class 'maxtest'
print(x, digits = getOption("digits"), ...)
## S3 method for class 'mmaxtest'
plot(x, xlab=NULL, ylab=NULL, nrow=2, ...)
## S3 method for class 'mmaxtest'
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

maxstat documentation built on May 2, 2019, 2:44 a.m.