Re: [R] shipro.test

About this list Date view Thread view Subject view Author view Attachment view

From: Achim Zeileis (zeileis@ci.tuwien.ac.at)
Date: Tue 18 Feb 2003 - 05:08:11 EST


Message-id: <200302171808.h1HI8Bt9016825@thorin.ci.tuwien.ac.at>

On Monday 17 February 2003 18:57, Korponai JŠnos wrote:

> Hi,
>
> I am newby to R. I run this test (shapiro.test(rt(2000,30))) (R :
> Copyright 2001, The R Development Core Team Version 1.3.1
> (2001-08-31))

That version is ancient...by now there is R 1.6.2

> for several times and results were different.
> Why do the shapiro.test produce different outputs?

If you generate random numbers by rt() you would
expect the output to be different in each run, wouldn't you?

If you generate the random numbers first:
R> x <- rt(2000,30)
and then run the test
R> shapiro.test(x)
it will indeed produce stable results.
Z

> Thanks,

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:22 EST