[R] How to calculate normality of the residuals from a test in R?
Henrique Dallazuanna
wwwhsd at gmail.com
Thu Feb 7 12:06:44 CET 2008
You can use shapiro.test
shapiro.test(mod1$res)
Also you can plot the value:
plot(mod1, 2)
text(par("usr")[1]+1, par("usr")[4]-.5, labels=paste("p-value",
round(shapiro.test(mod1$res)$p.value, 4), sep="="))
On 07/02/2008, Falco tinnunculus <kestrel78 at gmail.com> wrote:
> Hi,
>
> How do I calculate normality distribution of the residuals from a test in R?
>
> I have tried plot(mod1), and I get a nice plot, but no p-value... is there
> some other ways to calculate this?
>
> Regards Kes,
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O
More information about the R-help
mailing list