plot.hotelling.test: Plots the results from a permutation based version of...

Description Usage Arguments Details Author(s) Examples

View source: R/hotelling.test.r

Description

Plots a histogram of the distribution of the permuted test statistics for a permutation version of Hotelling's T-squared

Usage

1
2
## S3 method for class 'hotelling.test'
plot(x, ...)

Arguments

x

an object of type hotelling.test

...

any additional arguments to be passed to the hist command

Details

This function only works if you have performed a permutation test. It will return an error message if not. It could be programmed to draw the relevant F distribution in the standard case, but this seems rather pointless.

Author(s)

James M. Curran

Examples

1
2
3
4
5
6
data(bottle.df)
bottle.df = subset(bottle.df, Number == 1)
bottle.df$Number = rep(1:2,c(10,10))
fit = hotelling.test(.~Number, bottle.df, perm = TRUE)
plot(fit)
plot(fit, col = "lightblue")

Hotelling documentation built on Sept. 9, 2021, 9:09 a.m.