wilcZ: Wilcoxon tests, returning a z value that respects the sign of...

View source: R/wilcZ.R

wilcZR Documentation

Wilcoxon tests, returning a z value that respects the sign of the differences between two vectors

Description

Essentially, a wrapper for wilcox.test that also returns the p value, Z value, W value, and the difference in medians.

Usage

wilcZ(x, y, pairTest = F)

Arguments

x

First vector to compare

y

Second vector to compare

pairTest

Are x and y paired?

Examples

# Note that this doesn't make *a lot* of sense, since they're two totally different measurements
wilcZ(dat_cochraneEtAl_2019_PLOSOne$ufov, dat_cochraneEtAl_2019_PLOSOne$mot,pairTest = T)


akcochrane/ACmisc documentation built on Nov. 24, 2024, 11:22 a.m.