Skip to content

Putting all independent variables in one variable so performing many similar tests is more convenient

4 messages · Thomas Levine, Henrique Dallazuanna, Gabor Grothendieck

#
I want to do something like this.

avo(q~a+b+c+d+e+f+g+h+i+j+k+l)
avo(r~a+b+c+d+e+f+g+h+i+j+k+l)
avo(s~a+b+c+d+e+f+g+h+i+j+k+l)

(There's likely a better way to do this actually, but I think this'll work.)

How do I define e=a+b+c+d+e+f+g+h+i+j+k+l such that the following works?

avo(q~e)
avo(r~e)
avo(s~e)

Tom
#
oops, I mean aov
On Sun, Feb 1, 2009 at 9:27 AM, Thomas Levine <thomas.levine at gmail.com> wrote:
#
Try:

aov(yield ~., npk)
On Sun, Feb 1, 2009 at 9:27 AM, Thomas Levine <thomas.levine at gmail.com> wrote: