Chi-squared test for trend

Input Values

  

Undertake a chi-squared test for trend on a contingency table with 2 columns and 3 or more rows.

Inputs are the desired level of confidence in the estimate, the desired precision of the results and three columns of data: The first column represents group scores or values, while the remaining 2 columns are the respective counts for each combination of row and column categories. A header row of column names must be included but do not include row or column totals.

Outputs include:

  • The table of observed counts, with row and column totals; and
  • chi-squared statistic, degrees of freedom and corresponding P-value for normal chi-square test, as well as for slope and linearity of the data:
    • First row is a standard Pearson's Chi-squared test for association between predictor and outcome.
    • Second row is a Chi-squared test for linear trend. A significant result suggests that the slope of the trend line is non-zero.
    • Third row is a Chi-squarted test for linearity of the trend. A significant result suggests the trend is non-linear.
Confidence level:
Digits after decimal pt:
Paste three columns of data (3 or more rows) to be analysed in the space below and click on submit. Include a header row with column identifiers. The first column must be numeric and represents the score or value for each category. Other columns are counts of individuals in each category combination. Do not include row or column totals.
Download example data



Top

  Home  |   About this site  |   Glossary   |   References   |   Links   |  82 recent calculations


This site was created by Ausvet with funding from a range of sources.
It provides a range of epidemiological tools for the use of researchers and epidemiologists, particularly in animal health.
Please send any comments, questions or suggestions to Evan Sergeant
© 2017 Ausvet