score {jmuOutlier}R Documentation

Generating van der Waerden and Exponential Scores

Description

Generates van der Waerden scores (i.e., normal quantiles) and exponential (similar to Savage) scores, for combined data x and y.

Usage

 score(x, y = NULL, expon = FALSE) 

Arguments

x

A positive integer equal to the number of desired scores when y is NULL, or x is a vector of observations.

y

An optional vector of observations, typically used with two-sample tests.

expon

Logical; if FALSE (default), van der Waerden scores are computed, even for ties. If TRUE, Exponential scores are computed, and interpolation is used for ties.

Details

The scored values for x are the output, when y is NULL.

Value

x

Scored values for x, when y is not NULL.

y

Scored values for y, when y is not NULL.

Note

The formulas computed within score are based on the textbook by Higgins (2004).

Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

References

Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.

Examples

score( 10 )

score( 15, expon=TRUE )

score( c(4,7,6,22,13), c(15,16,7) )  # Two samples, including a tie. 

[Package jmuOutlier version 2.2 Index]