Description Usage Arguments Value Examples
View source: R/ContingencyTable.R
Function to compile a contingency table.
1 2 |
data |
A data frame that contains the data. |
row.var |
A factor with factor levels defining the rows of the contingency table. |
col.var |
A factor with factor levels defining the columns of the contingency table. |
show.props |
Which proportions for cell counts to show.
|
sign.digits.prop |
Number of digits for the displayed proportion of cell counts. |
test.input |
Whether the input is tested for logical consistency. Warning: testing is not
comprehensive. Setting |
An R character-matrix containing the compiled contingency table information.
1 | CONtable(example_data, row.var = "Educ", col.var = "Gender", show.props = "row", sign.digits.prop=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.