smd_compare {tangram} | R Documentation |
Create a SMD for a categorical set of column versus a numerical row
Description
Given a row and column object from the parser apply a Kruskal test and output the results horizontally. 1 X (n + no. categories + test statistic)
Usage
smd_compare(
table,
row,
column,
cell_style,
style,
smdformat = NULL,
pformat = NULL,
weight = NULL,
test = FALSE,
...
)
Arguments
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 |
style |
character; chosen styling to final table |
smdformat |
numeric, character or function; A formatting directive to be applied to smd |
pformat |
numeric, character or function; A formatting directive to be applied to p-values |
weight |
numeric; Vector of weights to apply to data when computing SMD |
test |
logical; include statistical test results |
... |
absorbs additional arugments. Unused at present. |
Value
The modified table object
[Package tangram version 0.8.2 Index]