Function for making Cross Tables.

crosstable(
  data,
  vars,
  group,
  sty = "nejm",
  excl = TRUE,
  cont = "mean",
  pcat = "chisq"
)

Arguments

data

The data as a data frame.

vars

variable in the rows

group

variable in the column

sty

.

excl

.

cont

.

pcat

.

Value

A results object containing:

results$todoa html
results$tablestyle1a html
results$tablestyle2a html
results$tablestyle3a html
results$tablestyle4a html

Examples

if (FALSE) { # example will be added }