Cochran-Armitage trend test with XLSTAT

Dataset for Cochran-Armitage trend test XLS28.0 KB

Tutorial video
Cochran-Armitage trend test is part of: Download Trial version More details See users' feedback
  • Pro Core statistical software

  • System configuration

    • Windows:
      • Versions: 9x/Me/NT/2000/XP/Vista/Win 7
      • Excel: 97 and later
      • Processor: 32 or 64 bits
      • Hard disk: 150 Mb
    • Mac OS X:
      • OS: OS X
      • Excel: X, 2004 and 2011
      • Hard disk: 150Mb.

Benefits

  • Easy and user-friendly
    Easy and user-friendly XLSTAT is flawlessly integrated with Microsoft Excel which is the most popular spreadsheet worldwide. This integration makes it one of the simplest available tools to work with as it utilizes the same philosophy as Microsoft Excel. The program is accessible in a dedicated XLSTAT tab. The analyses are grouped into functional menus. The dialog boxes are user-friendly and setting up an analysis is straightforward.
  • Data and results shared seamlessly
    Data and results shared seamlessly One of the greatest advantages of XLSTAT is the way you can share data and results seamlessly. As the results are stored in Microsoft Excel, anyone can access them. There is no need for the receiver to have an XLSTAT license or any additional viewer which makes your team-work easier and more affordable. In addition, results are easily integrable into other Microsoft Office software such as PowerPoint, so that you can create striking presentation in minutes.
  • Modular
    Modular XLSTAT is a modular product. XLSTAT-Pro is a core statistical module of XLSTAT which includes all the mainstream functionalities in statistics and multivariate analysis. More advanced features contained in add-on modules can be added for specific applications. This way you can adapt the software to your needs making the software more cost-efficient.
  • Didactic
    Didactic The results of XLSTAT are organized by analysis and are easy to navigate. Moreover useful information is provided along with the results to assist you in your interpretation.
  • Affordable
    Affordable XLSTAT is a complete and modular analytical solution that can suit any analytical business needs. It is very reasonably priced so that the return of your investment is almost immediate. Any XLSTAT license comes with top level support and assistance.
  • Accessible - Available in many languages
    Accessible - Available in many languages We have ensured XLSTAT is accessible to everyone by making the program available in many languages, including Chinese, English, French, German, Italian, Japanese, Polish, Portuguese and Spanish.
  • Automatable and customizable
    Automatable and customizable Most of the statistical functions available in XLSTAT can be called directly from the Visual Basic window of Microsoft Excel. They can be modified and integrated to more code to fit to the specificity of your domain. Adding tables and plots as well as modifying existing outputs becomes easy. Furthermore, XLSTAT includes some special tools on the dialog boxes to generate automatically the VBA code in order to reproduce your analysis using the VBA editor or to simply load pre-set settings. This effortless automation of routine analysis will be a huge time saver on your part.

Cochran-Armitage trend test

The Cochran-Armitage trend test, also sometimes refered to as the trend on proportions test, allows to test if a series of proportions (or the corresponding counts, stored in Rx2 contingency table), can be considered as varying linearly with an ordinal or continuous score variable. It is related to the Chi-square independence test that allows to test if there is relationship between the rows and the columns of a contingency table. The Cochran-Armitage test allows to take into account a ranking among the rows, based on scores.

Dataset for running a Cochran-Armitage trend test

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

The data used in this tutorial have been published in [Cochran W.G. (1954). Some methods on strengthening the common Chi-square tests. Biometrics, 10, 417-451], and are also used in [Agresti A.(1990), Categorical Data Analysis. Wiley]. The data correspond to a study where drugs have been given to patients with leprosy at two different levels (Low/High).

The clinical impact of the drugs is recorded on a five level scale (Worse, Stationary, Slight improvement, Moderate improvement, Marked improvement). Our goal is to determine whether there is a linear dependence between the impact and the level of drugs.

Setting up a Cochran-Armitage trend test

To activate the Cochran-Armitage trend test dialog box, start XLSTAT, then select the XLSTAT / Correlation-Association tests / Cochran-Armitage trend test command, or click on the corresponding button of the Correlation/Association tests toolbar (see below).

bartrend.gif

Once you have clicked on the button, the dialog box appears.

You should select the data corresponding to the two columns where the counts for each level are stored. This format corresponds to a contingency table.

As the scores (here the clinical impact which is a response variable) are ordinal data and already sorted, we do not need to select them.

As the Column labels have been selected with the counts, the corresponding option is checked.

trend1.gif

In the Options tab, we select the two-sided alternative hypothesis for the test: we only want to know if there is a linear trend or not.

We also activate the Monte Carlo method in order to obtain results that are closer to an exact test (the classical Cochran-Armitage trend test is based on an approximation).

trend2.gif

After you have clicked on the OK button, the computations start and the results are displayed on a new Excel sheet.

Interpreting the results of a Cochran-Armitage trend test

The first result is a summary based on the selected data.

trend3.gif

A scatter plot is displayed so that you can visually see if there is a trend or not. We can see here that there is a trend, and that it is almost perfectly linear.

trend4.gif

Last, the results of the two tests (approximated, and simulations based) are displayed. The two results are close and lead us to conclude, with a very low risk of being wrong, that there is a linear trend in the proportions.

trend5.gif