Learn R Programming

Rfit (version 0.14)

allscores: All Scores

Description

An object of class scores which includes the score function and it's derivative for rank-based regression inference.

Usage

data(wscores)

Arguments

format

The format is: Formal class 'scores' [package ".GlobalEnv"] with 2 slots ..@ phi :function (u) ..@ Dphi:function (u)

Details

Using Wilcoxon (linear) scores leads to inference which has ARE of 0.955 to least squares (ML) when the data are normal. Wilcoxon scores are optimal when the underlying error distribution is logistic. Normal scores are optimal when the data are normally distributed.

References

Hettmansperger, T.P. and McKean J.W. (2011), Robust Nonparametric Statistical Methods, 2nd ed., New York: Chapman-Hall.

Examples

Run this code
data(wscores)
x<-runif(10)
y<-rlogis(10)
rfit(y~x,scores=wscores)

Run the code above in your browser using DataLab