[R] mantel.haenszel.test for trend in S-plus doesn't work i R

2010-04-04 Thread Fredrik Lundgren
Dear R'ers, When I used S-plus i wrote a small program for a Mantel-Haenszel test for trend (I think it worked). Unfortunately I can't get it working in R. It appears as if my use of 'el' is the problem but I can't sort it out. Error in apply(array, c(, 2, 3), function(el) el * 1:s) :

Re: [R] mantel.haenszel.test for trend in S-plus doesn't work i R

2010-04-04 Thread David Winsemius
On Apr 4, 2010, at 6:51 AM, Fredrik Lundgren wrote: Dear R'ers, When I used S-plus i wrote a small program for a Mantel-Haenszel test for trend (I think it worked). Unfortunately I can't get it working in R. It appears as if my use of 'el' is the problem but I can't sort it out. Error in

Re: [R] mantel.haenszel.test for trend in S-plus doesn't work i R

2010-04-04 Thread Erich Neuwirth
That is the problem c(,2,3) Error: argument is missing, with no default On 4/4/2010 12:51 PM, Fredrik Lundgren wrote: Dear R'ers, When I used S-plus i wrote a small program for a Mantel-Haenszel test for trend (I think it worked). Unfortunately I can't get it working in R. It appears