test.wilcox.dt: Do a wilcox test on a data.table. More efficient that coin...

Description Usage Arguments Value

View source: R/analysis.helpers.R

Description

Do a wilcox test on a data.table. More efficient that coin for large numbers, sort the input by outcome to make it faster.

Usage

1
test.wilcox.dt(data.dt, two.sided = T, tie.correction = NULL, sort.input = F)

Arguments

data.dt

data.table with two-level grouping factor 'condition' and outcome 'outcomeā€¯

two.sided

Do a two sided test?

tie.correction

Apply tie correction (slightly slower, but sometimes necessary). If NULL, tie correction will be applied if there are.

sort.input

Sorts the input by reference, this enables faster ranking (i.e. speeds permutation test)

Value

A data.table containing statistics, including z score and theoretical p value (e.g. z.dt$z).


mattmoo/SteppedWedgeAnalysis documentation built on Jan. 14, 2020, 12:25 a.m.