View source: R/transform-nejm.R
summarize_nejm_horz | R Documentation |
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", ... )
table |
The table object to modify |
row |
The row variable object to use (numerical) |
column |
The column variable to use (categorical) |
cell_style |
list; cell styling functions |
pformat |
numeric, character or function; A formatting directive to be applied to p-values |
msd |
logical; Include mean and standard deviation with quantile statistics |
quant |
numeric; Vector of quantiles to include. Should be an odd number since the middle value is highlighted on display. |
overall |
logical or character; Include overall summary statistics for a categorical column. Character values are assumed to be true and used as column header. |
test |
logical or function; include statistical test results. Function signature must be function(row, col, cell_style, ...) |
useNA |
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. |
The modified table object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.