print.xtab {prettyR} | R Documentation |
Displays a 2D crosstabulation with optional chi-squared test and phi coefficient.
## S3 method for class 'xtab': print(x,col.width=8,chisq=FALSE,phi=FALSE,...)
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 . |
print.xtab
displays a crosstabulation in a fairly conventional style with row,
column and marginal percentages.
nil
Jim Lemon