Learn R Programming

tangram (version 0.8.2)

smd_contingency: Create a contingency table with SMD given a row column of a formula

Description

Create a contingency table with SMD given a row column of a formula

Usage

smd_contingency(
  table,
  row,
  column,
  cell_style,
  style,
  smdformat = NULL,
  collapse_single = TRUE,
  weight = NULL,
  test = FALSE,
  pformat = NULL,
  ...
)

Value

The resulting sub table constructed

Arguments

table

The tablebuilder object

row

The row node from the parser of the formula

column

The column node provided by the parser of the formula

cell_style

A list of all individual cell stylings to apply

style

The global style to apply.

smdformat

The format command to apply to smd

collapse_single

Should single factor variables be collapsed

weight

Any weighting to apply to data for computation of SMD

test

logical; include statistical test results

pformat

numeric, character or function; A formatting directive to be applied to p-values

...

Additional arguments to provide cell generation functions