Fits a One-way model to univariate data grouped by a factor, the
result often being displayed using rfs
oneway(formula, data, location=mean, spread=function(x) sqrt(var(x)))
A list with components
location
vector of locations for each group.
spread
vector of spreads for each group.
fitted.values
vector of locations for each observation.
residuals
residuals (y - fitted.values
).
scaled.residuals
residuals scaled by spread
for their
group
formula of the form y ~ x
where y
is the
numeric response and x
is 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).
Deepayan Sarkar Deepayan.Sarkar@R-project.org
rfs
, Lattice