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

View source: R/transform-smd.R

smd_contingencyR Documentation

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,
  ...
)

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

Value

The resulting sub table constructed


spgarbet/tg documentation built on Feb. 21, 2023, 3:35 a.m.