Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

refine.sm

IRWLS iterations for S- or M-estimators


Description

This function performs iterative improvements for S- or M-estimators.

Usage

refine.sm(x, y, initial.beta, initial.scale, k = 50, conv = 1, b, cc,
  family, step = "M")

Arguments

x

design matrix

y

vector of responses

initial.beta

vector of initial regression estimates

initial.scale

initial residual scale estimate. If missing the (scaled) median of the absolute residuals is used.

k

maximum number of refining steps to be performed

conv

an integer indicating whether to check for convergence (1) at each step, or to force running k steps (0)

b

tuning constant for the M-scale estimator, used if iterations are for an S-estimator.

cc

tuning constant for the rho function.

family

string specifying the name of the family of loss function to be used (current valid options are "bisquare", "opt" and "mopt")

step

a string indicating whether the iterations are to compute an S-estiamator ('S') or an M-estimator ('M')

Details

This function performs iterative improvements for S- or M-estimators. Both iterations are formally the same, the only difference is that for M-iterations the residual scale estimate remains fixed, while for S-iterations it is updated at each step. In this case, we follow the Fast-S algorithm of Salibian-Barrera and Yohai an use one step updates for the M-scale, as opposed to a full computation. This as internal function.

Value

A list with the following components:

beta.rw

The updated vector of regression coefficients

scale.rw

The corresponding estimated residual scale

converged

A logical value indicating whether the algorithm converged

Author(s)

Matias Salibian-Barrera, matias@stat.ubc.ca.


RobStatTM

Robust Statistics: Theory and Methods

v1.0.2
GPL (>= 3)
Authors
Matias Salibian-Barrera [cre], Victor Yohai [aut], Ricardo Maronna [aut], Doug Martin [aut], Gregory Brownson [aut] (ShinyUI), Kjell Konis [aut], Kjell Konis [cph] (erfi), Christophe Croux [ctb] (WBYlogreg, BYlogreg), Gentiane Haesbroeck [ctb] (WBYlogreg, BYlogreg), Martin Maechler [cph] (lmrob.fit, lmrob..M..fit, lmrob.S), Manuel Koller [cph] (lmrob.fit, .vcov.avar1, lmrob.S, lmrob.lar), Matias Salibian-Barrera [aut]
Initial release
2020-03-02

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.