summarize_nejm_vert {tangram}R Documentation

Create a summarization for a categorical row versus X numerical column

Description

Given a row and column object from the parser apply a Kruskal test and output the results vertically (#Categories+1) X (N, Summary, Statistic)

Usage

summarize_nejm_vert(
  table,
  row,
  column,
  cell_style,
  collapse_single = TRUE,
  pformat = NULL,
  msd = FALSE,
  test = FALSE,
  quant = c(0.25, 0.5, 0.75),
  ...
)

Arguments

table

The table object to modify

row

The row variable object to use (categorical)

column

The column variable to use (numerical)

cell_style

list; cell styling functions

collapse_single

logical; default TRUE. Categorical variables with a two values collapse to single row.

pformat

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

msd

logical; include msd in summary

test

logical; include statistical test results

quant

numeric; vector of quantiles to include. Should be an odd number since the middle value is highlighted on display.

...

absorbs additional arugments. Unused at present.

Value

The modified table object


[Package tangram version 0.8.2 Index]