[R] Testing for normality of residuals in a regression model

Stefano Calza stecalza at tiscali.it
Fri Oct 15 12:50:57 CEST 2004

What about shapiro.test(resid(fit.object))


On Fri, Oct 15, 2004 at 02:44:18PM +0200, Federico Gherardini wrote:
> Hi all,
> Is it possible to have a test value for assessing the normality of 
> residuals from a linear regression model, instead of simply relying on 
> qqplots?
> I've tried to use fitdistr to try and fit the residuals with a normal 
> distribution, but fitdsitr only returns the parameters of the 
> distribution and the standard errors, not the p-value. Am I missing 
> something?
> Cheers,
> Federico
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html

More information about the R-help mailing list