Given a row and column object from the parser apply a Kruskal test and output the results vertically (#Categories+1) X (N, Summary, Statistic)
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),
...
)
The modified table object
The table object to modify
The row variable object to use (categorical)
The column variable to use (numerical)
list; cell styling functions
logical; default TRUE. Categorical variables with a two values collapse to single row.
numeric, character or function; A formatting directive to be applied to p-values
logical; include msd in summary
logical; include statistical test results
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.