[R] mantelhaen.test for more than two groups?

From: Katrin Schweitzer <Katrin.Schweitzer_at_ims.uni-stuttgart.de>
Date: Wed 27 Apr 2005 - 02:09:41 EST

Dear All,

I'd like to perform the generalized Cochran-Mantel-Haenszel-Test (as described in Agresti (1990), Categorical Data Analysis) for my nominal data.

My problem is that I have more than two groups. In fact I think I'd need an 5-dimensional array for the response variable, the control variable and three group variables.
Could you please tell me if this is possible in R - and if yes how I am
supposed to do this?

By now I get an error message:

Error in mantelhaen.test(MyData) : x must be a 3-dimensional array

I'm using R Version 1.9.1 on a Linux machine.

I apologize in case I am completely wrong by choosing this test, which might be the fact as this is my very first struggle with statistics... :)

In the hope of not losing it,
thank you very much for any help,
:) Kati

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Apr 27 02:09:27 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:26 EST