medpolish(x)
medpolish fits an additive
constant-plus-rows-plus-columns
model to the values given in x.
In addition to the fitted an parameters and residuals,
medpolish returns a set of additivity diagnostics.
The additivity diagnostics for the ij-th
element are r[i]*c[j]/t.
Plotting the residuals against these values provides
an indication of whether an additive model is appropriate.
The sum of absolute residuals is printed at
each iteration of the fiting process.
Values
A list containing the following named components:
t
the fitted constant term.
r
the fitted row effects.
c
the fitted column effects.
residuals
the residuals.
cvs
additivity diagnostics.
fit
fitted values.