Re: [R] R-square in robust regression

From: Laura Poggio <>
Date: Thu, 13 Nov 2008 10:25:02 +0000

I was searching for a way to compute robust R-square in R in order to get an information similar to the "Proportion of variation in response(s) explained by model(s)" computed by S-Plus. This post is dealing with that. Would be possible to have some hints on how to calculate this parameter within R?

Thank you very much in advance.

Laura Poggio

Date: Mon, 20 Oct 2008 06:15:49 +0100 (BST) From: Prof Brian Ripley <> Subject: Re: [R] R-square in robust regression To: PARKERSO <>

       <> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Sun, 19 Oct 2008, PARKERSO wrote:


> Hi there,
> I have just started using the MASS package in R to run M-estimator robust
> regressions. The final output appears to only give coefficients, degrees
> freedom and t-stats. Does anyone know why R doesn't compute R or R-squared

These as only valid for least-squares fits -- they will include the possible outliers in the measure of fit.

And BTW, it is not 'R', but the uncredited author of the package who made such design decisions.

> and why doesn't give you any other indices of goodness of fit?

Which ones did you have in mind? It does give a scale estimate of the residuals, and this determines the predition accuracy.

> Does anyone know how to compute these in R?


> Sophie

Brian D. Ripley,        
Professor of Applied Statistics,<>
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

	[[alternative HTML version deleted]]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 13 Nov 2008 - 10:31:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Nov 2008 - 11:30:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive