Learn R Programming

Rfit: Rank-based estimation for linear models

Installation

  • Rfit may be installed from
    • CRAN e.g. install.packages('Rfit')
    • github e.g. install_github('kloke/Rfit')
  • Rfit no longer requires the package quantreg The inital fit is now based on least squares to avoid additional dependencies. One may still use quantreg to obtain the inital fit which will ensure the robustnesses of the result.

Background

Rank-based (R) estimation for statistical models is a robust nonparametric alternative to classical estimation procedures such as least squares. R methods have been developed for models ranging from linear models, to linear mixed models, to timeseries, to nonlinear models. Advantages of these R methods over traditional methods such as maximum-likelihood or least squares is that they require fewer assumptions, are robust to gross outliers, and are highly efficient at a wide range of distributions. Rfit uses standard linear model syntax and includes commonly used functions for inference and diagnostic procedures. Wilcoxon scores, the default, are robust and highly efficent relative to the least squares estimator when the errors are normally distributed.

Fine Print

As with R itself, Rfit is free software and comes with ABSOLUTELY NO WARRANTY.

Copy Link

Version

Install

install.packages('Rfit')

Monthly Downloads

1,570

Version

0.27.0

License

GPL (>= 2)

Maintainer

John Kloke

Last Published

May 25th, 2024

Functions in Rfit (0.27.0)

rstudent.rfit

Studentized Residuals for Rank-Based Regression
scores-class

Class "scores"
summary.rfit

Summarize Rank-Based Linear Model Fits
taufuncs

Internal Functions for Estimating tau
taustar

Estimate of the Scale Parameter taustar
param-class

Class "param"
summary.oneway.rfit

Provides a summary for the oneway anova based on an R fit.
vcov.rfit

Variance-Covariance Matrix for Rank-Based Regression
oneway.rfit

Rank-based Oneway Analysis of Variance
telephone

Telephone Data
rfit

Rank-based Estimates of Regression Coefficients
kwayr

Internal Functions for K-Way analysis of variance
jaeckel

Function to Minimize Jaeckel's Dispersion Function
signedrank

Signed-Rank Estimate of Location (Intercept)
raov

R ANOVA
walsh

Walsh Averages
serumLH

Serum Level of luteinizing hormone (LH)
wald.test.overall

Overall Wald test
disp

Jaeckel's Dispersion Function
confintadjust

Confidence interval adjustment methods
allscores

All Scores
bbsalaries

Baseball Salaries
print.rfit

Rfit Internal Print Functions
gettau

Estimate of the scale parameter tau
BoxCox

Box and Cox (1964) data.
getScoresDeriv-methods

~~ Methods for Function getScoresDeriv ~~
CardioRiskFactors

Cardiovascular risk factors
quail

Quail Data
ffa

Free Fatty Acid Data
getScores-methods

~~ Methods for Function getScores ~~
Rfit-package

Rank-Based Estimates and Inference for Linear Models
drop.test

Drop (Reduction) in Dispersion Test
baseball

Baseball Card Data
grad

Calculate the Gradiant of Jaeckel's Dispersion Function