Usage
crosstabs(x, y, digits = 2, max.width = 5, expected = FALSE,
row = FALSE, column = FALSE, total = FALSE, resid = FALSE,
sresid = FALSE, asresid = FALSE, chisq = FALSE, fisher = FALSE,
mcnemar = FALSE, missing.include = FALSE)
Arguments
digits
Number of digits after the decimal point.
max.width
In the case of a 1 x n table, the default will be to print the output horizontally. If the number of columns exceeds max.width, the table will be wrapped for each successive increment of max.width columns. If you want a single column vertical table, set m
expected
If TRUE, chisq will be set to TRUE and expected cell counts from the Chi-Square will be included.
row
If TRUE, row proportions will be included.
column
If TRUE, column proportions will be included.
total
If TRUE, table proportions will be included.
resid
If TRUE, residual (Pearson) will be included.
sresid
If TRUE, standardized residual will be included.
asresid
If TRUE, adjusted standardized residual will be included.
chisq
If TRUE, the results of a chi-square test will be included.
fisher
If TRUE, the results of a Fisher Exact test will be included.
mcnemar
If TRUE, the results of a McNemar test will be included.
missing.include
If TRUE, then remove any unused factor levels.