Learn R Programming

rankdifferencetest (version 2025.12.4)

srt_statistic: Calculate the test statistic for a signed-rank test.

Description

Calculates the test statistic for a signed-rank test.

Usage

srt_statistic(x, ...)

# S3 method for wilcoxon srt_statistic(x, ...)

# S3 method for shift srt_statistic(x, ...)

# S3 method for asymptotic srt_statistic(x, warn_zd = FALSE, ...)

Value

list

It carries forward the class selected by srt_method().

Arguments

x

(named list)
The object returned by srt_method() in a 'srt pipeline'.

...

dots arguments are not used.

warn_zd

(Scalar logical: c(FALSE, TRUE))
Used for root-finding algorithm 'Z(d)' in confidence interval test inversion. If TRUE return a warning and exit with value statistic = 0.