Crosstabs print methods
Functions to display (2 x 2) contingency table
## S3 method for class 'cross' print(x, ..., test = "chisq.test", export = NULL)
x |
Object of type |
... |
Unused arguments |
test |
list of statistical tests (as character vector) passed to
the 2x2 table. By default, |
export |
Either "pdf" or "xlsx" or NUll. Crosstab is flushed into either a pdf using latex or an Excel spreadsheet using package openxlsx |
Export to "pdf", "xlsx" open the crosstabs in the corresponding formats.
Print methods associated with the cross
object.
Charles-Édouard Giguère
require(CUFF) ### example of crosstabs cr1 <- cross( ~ N + P, npk) print(cr1, test = c("chisq.test", "fisher.test"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.