chisq.residuals function

Return the chi-squared residuals of a two-way frequency table.