# B_11_oneway

From lattice v0.20-40
by Deepayan Sarkar

##### Fit One-way Model

Fits a One-way model to univariate data grouped by a factor, the
result often being displayed using `rfs`

- Keywords
- dplot

##### Usage

`oneway(formula, data, location=mean, spread=function(x) sqrt(var(x)))`

##### Arguments

- formula
formula of the form

`y ~ x`

where`y`

is the numeric response and`x`

is 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

vector of locations for each group.

vector of spreads for each group.

vector of locations for each observation.

residuals (`y - fitted.values`

).

residuals scaled by `spread`

for their
group

##### See Also

*Documentation reproduced from package lattice, version 0.20-40, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.