Chi-squared test for contingency table from original data

Input Values

  

Undertake a chi-squared test on a contingency table created from original data.

Inputs are the desired level of confidence in the estimate, the desired precision of the results and two columns of data: The first column is observations on a single risk factor while the second column is corresponding observations of a disease (or other) outcome. Include a header row of column identifiers.

Outputs include:

  • The table of observed counts, with row and column totals;
  • A table of row proportions (each cell as a proportion of the corresponding row total), with row totals;
  • chi-squared statistic, degrees of freedom and corresponding P-value; and
  • a stacked bar chart of cell frequencies for each column category in each row category.

Additional outputs are included if there are only two columns of data (column variable is dichotomous):

  • table and graph of proportions (as a proportion of row total) and associated confidence limits for the first column in each row.
Confidence level:
Digits after decimal pt:
Paste two columns of data to be analysed in the space below and click on submit. The first is observations on a single risk factor while the second column is corresponding observations of a disease (or other) outcome of interest. Include a header row of column identifiers.
Download example data


Top

  Home  |   About this site  |   Glossary   |   References   |   Links   |  296 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