Input Values 

Undertake a chisquared 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
 chisquared statistic, degrees of freedom and corresponding Pvalue
for normal chisquare test, as well as for slope and linearity of the data:
 First row is a standard Pearson's Chisquared test for association between predictor and outcome.
 Second row is a Chisquared test for linear trend. A significant result suggests that the
slope of the trend line is nonzero.
 Third row is a Chisquarted test for linearity of the trend. A significant result suggests the trend is nonlinear.
