Skip to contents

Function for making Cross Tables.

Usage

crosstable2(
  data,
  vars,
  group,
  sty = "nejm",
  excl = FALSE,
  cont = "mean",
  pcat = "chisq"
)

Arguments

data

The data as a data frame.

vars

The variable(s) that will appear as rows in the cross table.

group

The variable that will appear as columns (groups) in the table.

sty

.

excl

Exclude rows with missing values.

cont

.

pcat

.

Value

A results object containing:

results$subtitlea preformatted
results$todoa html
results$todo2a html
results$tablestyle1a html
results$tablestyle2a html
results$tablestyle3a html
results$tablestyle4a html