
Last chance! 50% off unlimited learning
Sale ends in
plot.hov
function
graphs the components of the Brown and Forsyth test statistic.plot.hov(x, data = sys.parent(), method = "bf", ## x is a formula
transpose.in = TRUE, ...)
## users will normally use the formula above and will not call the
## method directly.
plot.hov.bf(x, group, ## x is the response variable
y.name = deparse(substitute(x)),
group.name = deparse(substitute(group)),
transpose.in = TRUE, ...)
## users will normally use the formula above and will not call the
## panel function directly.
panel.hov(..., transpose = TRUE)
plot.hov
.
Response variable in plot.hov.bf
.TRUE
in R.
Normally TRUE
in S-Plus to force vertical boxplots."trellis"
object with three panels containing boxplots for each
group: The observed data "y"
, the data with the median
subtracted "y-med(y)"
, and the absolute deviations from the
median "abs(y-med(y))"
The Brown and Forsyth test statistic is
the $F$ statistic resulting from an ordinary one-way analysis of
variance on the data points in the third panel.aov
, hov
turkey <- read.table(hh("datasets/turkey.dat"), header=FALSE)
names(turkey) <- c("diet","wt.gain")
turkey$diet <- factor(turkey$diet,
labels=c("control","A1","A2","B1","B2"))
hov(wt.gain ~ diet, data=turkey)
plot.hov(wt.gain ~ diet, data=turkey)
Run the code above in your browser using DataLab