otCrossTable is a function to make 2-dimensional cross table from two variables. It is similar to the function "table", but otCrossTable use a formula to set two variables. This is why other ot-functions use formula style.
1 | otCrossTable(data, model = NULL, omit.na = TRUE, is.test = TRUE)
|
data |
a data.frame object including two variables |
model |
a formula "var_a ~ var_b" style |
omit.na |
a logical value. If TRUE, NA is deleted from a cross table. |
is.test |
a logical value. If TRUE, chisq.test and fisher.test are submitted. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.