Fit One-way Model
oneway.RdFits a One-way model to univariate data grouped by a factor, the
result often being displayed using rfs
Arguments
- formula
formula of the form
y ~ xwhereyis the numeric response andxis the grouping factor- data
data frame in which the model is to be evaluated
- location
function or numeric giving the location statistic to be used for centering the observations, e.g.
median, 0 (to avoid centering).- spread
function or numeric giving the spread statistic to be used for scaling the observations, e.g.
sd, 1 (to avoid scaling).
Value
A list with components
locationvector of locations for each group.
spreadvector of spreads for each group.
fitted.valuesvector of locations for each observation.
residualsresiduals (
y - fitted.values).scaled.residualsresiduals scaled by
spreadfor their group
Author
Deepayan Sarkar Deepayan.Sarkar@R-project.org