x2Table: Make a chisquare result table

Description Usage Arguments Examples

View source: R/x2Table.R

Description

Make a chisquare result table

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
x2Table(
  data,
  x,
  y,
  margin = 1,
  show.percent = TRUE,
  show.label = TRUE,
  show.stat = TRUE,
  vanilla = FALSE,
  fontsize = 12,
  ...
)

Arguments

data

A data.frame

x

a column name

y

a column name

margin

numeric If 1 row percent, if 2 col percent

show.percent

logical

show.label

logical

show.stat

logical

vanilla

logical whether or not make vanilla table

fontsize

A numeric

...

Further arguments to be passed to df2flextable()

Examples

1
2
require(moonBook)
x2Table(acs,sex,DM)

webr documentation built on March 26, 2020, 6:22 p.m.