Thank you very much,

Tony L.

On 18 November 2010 14:02, Lancaster, Anthony
<anthony_lancaster@brown.edu>wrote:

>   Hi,
> I'd appreciate help with this. I have a data matrix with one column, called
> f in the example below, a factor. I'd like to subtract the means from each
> of
> other columns for each level of the factor. That is, in the example, to go
> from the first matrix below to the second. I know SWEEP will take out means,
> but I want to do this for each level of the factor.
>       f    x
>      1   2
>      1   0
>       2   0
>       2   4
>       2   2
>
>      f   xnew
>      1    1
>      1   -1
>      2   -2
>      2    2
>      2     0
> Thanks

	[[alternative HTML version deleted]]

