plot.clusbootptest: Plot results of a permutation test

Description Usage Arguments Author(s) Examples

View source: R/permutationtest.R

Description

Plot results of a permutation test performed with ptest

Usage

1
2
## S3 method for class 'clusbootptest'
plot(x, pcol = "red", pty = 1, mfrow = c(1, 1), ...)

Arguments

x

object of class clusbootptest

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

Author(s)

Mathijs Deen, Mark de Rooij

Examples

1
2
3
4
5
6
7
## 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)

ClusterBootstrap documentation built on Feb. 16, 2021, 5:06 p.m.