# NOT RUN {
data(Oncho)
## A two by two contingency table:
Oncho %>%
cross_tab(mf ~ area)
## Reporting prevalence:
Oncho %>%
cross_tab(area ~ mf)
## Contingency table for both sex and area of residence:
Oncho %>%
cross_tab(mf ~ sex + area, p_val = TRUE)
## Descriptive statistics for all variables in the \code{Oncho} data set except \code{id}.
require(dplyr)
Oncho %>%
select(- id) %>%
cross_tab(mf ~ .)
# }
Run the code above in your browser using DataLab