[R] modified kolmogorov-smirnov

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon Jul 1 19:44:01 CEST 2002


On Mon, 1 Jul 2002, [iso-8859-1] Martín Marqués wrote:

> Don't worry, I think I got the answer. If you don't give ks.test() the
> parameters for the normal, it does the modified K-S test (I'm right
> ain't I?).

Did you read either the help page or the code?  Or even do an experiment:

> x <-rnorm(1000, 10, 1)
> ks.test(x, pnorm)

        One-sample Kolmogorov-Smirnov test

data:  x
D = 1, p-value = < 2.2e-16
alternative hypothesis: two.sided

So, `it ain't', and we do now start to worry.

Why do you want to do this test anyway?

1) There are better tests of normality and
2) Almost always the amount of non-normality that might affect the
substantive conclusions is unrelated to the signifcance of a test
statistic.


>
> Saludos... :-)
>
> On Mon, 1 Jul 2002, Martín Marqués wrote:
>
> > I'm trying to use modified Kolmogorov-Smirnov test with a Normal which I
> > don't know it's parameters. Somebody told me about the lilifor function in
> > R, but just can't find it.
> > Does anybody know how I can test with the modified Kolmogorov-Smirnov
> > test?
> >
> >
> > Porqué usar una base de datos relacional cualquiera,
> > si podés usar PostgreSQL?
> > -----------------------------------------------------------------
> > Martín Marqués                  |        mmarques at unl.edu.ar
> > Programador, Administrador, DBA |       Centro de Telematica
> >                        Universidad Nacional
> >                             del Litoral
> > -----------------------------------------------------------------
> >
> >
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> >
>
> Porqué usar una base de datos relacional cualquiera,
> si podés usar PostgreSQL?
> -----------------------------------------------------------------
> Martín Marqués                  |        mmarques at unl.edu.ar
> Programador, Administrador, DBA |       Centro de Telematica
>                        Universidad Nacional
>                             del Litoral
> -----------------------------------------------------------------
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list