print.xtab: Display a 2D crosstabulation
Description
Displays a 2D crosstabulation with optional chi-squared test and phi coefficient.Usage
## S3 method for class 'xtab':
print(x,col.width=8,chisq=FALSE,phi=FALSE,...)
Arguments
x
The list returned by calculate.xtab
.
col.width
Width of the columns in the display.
chisq
Whether to call chisq.test
and display the result.
phi
Whether to calculate and display the phi coefficient (only for 2x2 tables).
...
additional arguments passed to chisq.test
.
Details
print.xtab
displays a crosstabulation in a fairly conventional style with row,
column and marginal percentages.