Re: [R] g(x,y) = f(x,y) - e(x)- e(y)?

From: William Simpson <>
Date: Sat, 26 Apr 2008 14:28:28 +0100

Thanks everyone for the help.

Greg, I posted the equation from Prof Brillinger's paper. To me it is not clear how or why to subtract a vector from a matrix (since they have diff dimensions). That's why I posted my question to the experts here!

Anyway, I have some answers now.


On Wed, Apr 23, 2008 at 5:52 PM, Greg Snow <> wrote:
> It is not clear exactly what you want to do by subtracting a vector from a matrix, but look at the "sweep" function, it may do what you want.
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 26 Apr 2008 - 13:37:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Apr 2008 - 15:00:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive