# NOT RUN {
## use infert data
data(infert)
## single variable
tab(infert, parity)
## multiple variables
tab(infert, parity, induced, case:pooled.stratum)
## tabulate the whole dataset
tab(infert)
## cross-tabulation
tab(infert, parity, by = case)
tab(infert, parity, by = case, row.pct = FALSE)
tab(infert, parity, by = case, row.pct = NULL)
## multiple variable
tab(infert, age, parity:spontaneous, education, by = case)
# }
Run the code above in your browser using DataLab