plot.clusbootptest {ClusterBootstrap} | R Documentation |
Plot results of a permutation test
Description
Plot results of a permutation test performed with ptest
Usage
## S3 method for class 'clusbootptest'
plot(x, pcol = "red", pty = 1, mfrow = c(1, 1), ...)
Arguments
x |
object of class |
pcol |
color of vertical line indicating the observed Welch t test statistic |
pty |
type of vertical line indicating the observed Welch t test statistic |
mfrow |
vector of length 2 indicating the numbers of rows and columns in which the histograms will be drawn on the device. |
... |
other arguments to be passed into the |
Author(s)
Mathijs Deen, Mark de Rooij
Examples
## Not run:
medication <- medication[medication$time %% 1 == 0,]
set.seed(1)
permtest.1 <- ptest(data = meds, outcome = pos, within = time, between = treat,
at.within = c(0,2,4,6), at.between = c(0,1), pn = 2000)
plot(permtest.1, pcol = "red", pty=2, mfrow = c(2,2), breaks="FD")
## End(Not run)
[Package ClusterBootstrap version 1.1.2 Index]