On this page
oneway
Fit One-way Model
Description
Fits a One-way model to univariate data grouped by a factor, the result often being displayed using rfs
Usage
oneway(formula, data, location=mean, spread=function(x) sqrt(var(x)))
Arguments
formula |
formula of the form |
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. |
spread |
function or numeric giving the spread statistic to be used for scaling the observations, e.g. |
Value
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 ( |
scaled.residuals |
residuals scaled by |
Author(s)
Deepayan Sarkar Deepayan.Sarkar@R-project.org
See Also
Copyright (©) 1999–2012 R Foundation for Statistical Computing.
Licensed under the GNU General Public License.