Running a Cochran-Mantel-Haenszel test with XLSTAT

Conjunto de datos para Prueba de Cochran-Mantel-Haenszel XLS42.5 KB

Vídeo de tutorial
Prueba de Cochran-Mantel-Haenszel es parte de : Descargar evaluación Más detalles Ver los comentarios del usuario

Ventajas

  • Sencillo y dirigido a los usuarios
    Sencillo y dirigido a los usuarios XLSTAT es un software que se integra de forma transparente con Microsoft Excel, que es la hoja de cálculo más difundida del mundo. Esta integración hace que sea una de las herramientas más sencillas para trabajar ya que utiliza la misma filosofía que Microsoft Excel. El programa está disponible en una ficha de XLSTAT. Los análisis se agrupan en menús funcionales. Los cuadros de diálogo están dirigidos a los usuarios, por lo que la preparación de los análisis es tarea sencilla.
  • Resultados y datos compartidos sin dificultad
    Resultados y datos compartidos sin dificultad Una de las mayores ventajas de XLSTAT es la forma transparente con la que se pueden compartir los datos y los resultados. Los resultados se almacenan en Microsoft Excel de modo que cualquier usuario puede acceder a ellos. No es necesario que el destinatario tenga una licencia de XLSTAT o cualquier visor adicional, lo que facilita y rentabiliza el trabajo en equipo. Del mismo modo, es fácil integrar los resultados en otras aplicaciones de Microsoft Office, como PowerPoint, por lo que se pueden crear estupendas presentaciones en cuestión de minutos.
  • Modular
    Modular XLSTAT es un producto modular. XLSTAT-Pro es un módulo principal de estadística de XLSTAT, que incluye todas las funcionalidades dominantes en el análisis estadístico y multivariado. Es posible añadir funciones más avanzadas por medio de módulos complementarios para aplicaciones específicas. De este modo es posible adaptar el software a sus necesidades, aumentando la rentabilidad.
  • Didáctico
    Didáctico Los resultados de XLSTAT están organizados por análisis y es fácil desplazarse por ellos. La información útil se proporciona junto con los resultados para ayudarle en su interpretación.
  • Asequible
    Asequible XLSTAT es una solución completa y modular que se puede ajustar a cualquier necesidad de análisis comercial. Tiene un precio muy razonable, por lo que el retorno de su inversión es casi inmediato. Todas las licencias de XLSTAT incluyen también un servicio de asistencia de la mayor calidad.
  • Accesible: disponible en muchos idiomas
    Accesible: disponible en muchos idiomas Nos hemos asegurado de que XLSTAT sea accesible para todos traduciendo el programa a muchos idiomas, incluyendo chino, inglés, alemán, italiano, japonés, polaco, portugués y español.
  • Automatizable y personalizable
    Automatizable y personalizable La mayoría de las funciones estadísticas disponibles en XLSTAT pueden llamarse directamente desde la ventana Visual Basic de Microsoft Excel. Pueden modificarse e integrarse en código fuente adicional para ajustarse a sus necesidades. Añadir tablas y trazados, así como modificar los resultados existentes se convierte en tarea sencilla. Además, XLSTAT incluye algunas herramientas especiales en los cuadros de diálogo para generar automáticamente el código fuente VBA para reproducir su análisis empleando el editor de VBA o simplemente cargar ajustes predeterminados. Esta automatización de análisis rutinarios sin esfuerzo le ahorrará gran cantidad de tiempo.

Dataset to run a Cochran-Mantel-Haenszel test and goal of this tutorial

An Excel sheet with both the data and the results can be downloaded by clicking here.

The dataset has first been used in [Mantel N. (1963). Chi-Square Tests with One Degree of Freedom; Extensions of the Mantel- Haenszel Procedure. Journal of the American Statistical Association, 58, 303, 690-700], and corresponds to an experiment in which rabbits were injected with beta-hemolytic streptococci, and then immediately or after 90 minutes with a dose of penicillin varying from 1/8 to 4.

The aim of the experiment is to check first if there is a dependency between the survival or death of the rabbit and the delay in injection of penicillin.

Setting up a Cochran-Mantel-Haenszel test

After opening XLSTAT, click the Non parametric tests button in the ribbon and select Cochran-Mantel-Haenszel test (see below).

barcmh.gif

Once you've clicked the button, the dialog box appears. You can then select the data on the Excel sheet. Two formats are possible. For illustration the two data formats are presented in the datasheet. However for the tutorial, only the format Contingency Table is used.

You must select at first the 5 contingency tables (each corresponding to a level of penicillin). The option Column label is left enabled as the first line of the selection contains the names of two categories of the response variable (Cured or Died).

cmh1.gif

In the Options tab, the alternative hypothesis proposed is valid only when the selected tables are 2x2, which is the case here.

The Common odds ratio <> 1 option corresponds to the assumption of dependence. In the case of 2x2 tables it is possible to calculate an exact p-value.

cmh2.gif

Once you have clicked the OK button, the computation starts. The results are then displayed.

Interpreting the results of a Cochran-Mantel-Haenszel test

XLSTAT first provides a table that displays the Cramer's V, the chi-square statistics and the p-values (exact in the case of 2x2 tables) to evaluate for each sub-table if it corresponds to a case independence or not. These statistics are calculable only if the marginal sums are nonzero in each sub-tables. We see here that only the table corresponding to the dose 1 / 2 is close to dependence.

cmh3.gif

The Cramer's V has the advantage of being interpretable in terms of strength of link between variables. In the case of 2x2 tables, it is indeed close to 0 when there is no link, -1 if the cross categories (1 and 2, 2 and 1) are related, and close to 1 when categories with the same index (1 and 1, 2 and 2) are linked.

However, when taking the tables all together for a Cochran-Mantel-Haenszel test, we obtain a common odds ratio of 7, with a 95% confidence interval that does not included the value 1. The exact p-value of 0.04 (we would obtain 0.047 if the exact option was not selected) leads to the conclusion that there is generally a link between the delay and the fact that a rabbit will survive or not the injection of streptococci.

cmh4.gif

This result may seem surprising because none of the sub-tables for which one could calculate the statistics showed a dependency. By combining the tables we show there is a dependence. As the odds ratio is greater than 1, there is a positive effect of an immediate injection of penicillin on the survival.

The Cochran-Mantel-Haenszel should be used with caution. It is particularly not recommended when there is a level 3 interaction between the 3 variables. In our case, this would correspond to the situation where a higher dose of penicillin would increase the impact of delay on the survival. This situation can correspond to an evolution of Cramer's V from a value close to -1 to 1. And despite an obvious strong dependence, the Cochran-Mantel-Haenszel could conclude that there is independence. Hence the interest that the Cramer's V are almost homogeneous when one concludes there is independence.