Learn R Programming

jmuOutlier (version 2.2)

score: 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.

Value

x

Scored values for x, when y is not NULL.

y

Scored values for y, when y is not NULL.

Details

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

References

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

Examples

Run this code
# NOT RUN {
score( 10 )

score( 15, expon=TRUE )

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

Run the code above in your browser using DataLab