onesided_sgn: Calculate sum of signs of one vector

Description Usage Arguments Details Value References See Also

View source: R/globalHelpers.R

Description

This fuction takes a vector of ranks as input and returns the summed product of the signs of \binom {n} {2} permutations.

Usage

1

Arguments

t

A vector of ranks.

Details

onesided_sgn operates like sgn but takes only a single vector as input. In the context of the Kendall's Rank Correlation Coefficient this assumes, that the provided vector represents entries in their natural order.

Value

An Integer.

References

Kendall, M. G. (1975): Rank Correlation Methods. 4th Edition London, High Wycombe: Charles Griffin & Company Ltd.

See Also

sgn


Florian-Katerndahl/simpleRank documentation built on Dec. 17, 2021, 8:28 p.m.