Fit One-way Model
Fits a One-way model to univariate data grouped by a factor, the
result often being displayed using
oneway(formula, data, location=mean, spread=function(x) sqrt(var(x)))
formula of the form
y ~ xwhere
yis the numeric response and
xis the grouping factor
data frame in which the model is to be evaluated
function or numeric giving the location statistic to be used for centering the observations, e.g.
median, 0 (to avoid centering).
function or numeric giving the spread statistic to be used for scaling the observations, e.g.
sd, 1 (to avoid scaling).
A list with components
vector of locations for each group.
vector of spreads for each group.
vector of locations for each observation.
y - fitted.values).
residuals scaled by
spread for their