Given a row and column object from the parser apply a Kruskal test and output the results horizontally. 5 X (n + no. categories + test statistic)
summarize_nejm_horz(
table,
row,
column,
cell_style,
pformat = NULL,
msd = FALSE,
quant = c(0.25, 0.5, 0.75),
overall = NULL,
test = FALSE,
useNA = "no",
...
)
The modified table object
The table object to modify
The row variable object to use (numerical)
The column variable to use (categorical)
list; cell styling functions
numeric, character or function; A formatting directive to be applied to p-values
logical; Include mean and standard deviation with quantile statistics
numeric; Vector of quantiles to include. Should be an odd number since the middle value is highlighted on display.
logical or character; Include overall summary statistics for a categorical column. Character values are assumed to be true and used as column header.
logical or function; include statistical test results. Function signature must be function(row, col, cell_style, ...)
character; Specifies whether to include NA counts in the table. The allowed values correspond to never "no" (Default), only if the count is positive "ifany" and even for zero counts "always". An NA column is always excluded.
absorbs additional arugments. Unused at present.