plot.maxtest.Rd
Printing and ploting method of objects of class maxtest
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
.
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)
#>
#> Maximally selected Median statistics using HL
#>
#> data: y by x
#> M = 2.7822, p-value = 0.02024
#> sample estimates:
#> estimated cutpoint
#> 0.1761709
#>
plot(mod)