s-news
[Top] [All Lists]

[S] Kolmogorov-Smirnov poisson test

To: <s-news@wubios.wustl.edu>
Subject: [S] Kolmogorov-Smirnov poisson test
From: acebrian@posta.unizar.es
Date: Tue, 29 Jun 1999 01:37:34 +0200
Sender: owner-s-news@wubios.wustl.edu


I am having problems using Kolmogorov- Smirnov  test with Poisson
distribution and I think there could be a debug,
An easy example

> x<-c(7,3,6,12,8,7,4,8,3,3,6,9)
> lan<-mean(x)
> lan
[1] 6.333333

> ks.gof(x,dist='pois',lambda=landa)

        One-sample Kolmogorov-Smirnov Test
        Hypothesized distribution = poisson

data:  x 
ks = 0.2196, p-value = 0.3909 

but the the real KS test value is 0.126



Am I making a mistake using the function or is there a debug on the
Kolmogorov-Smirnov test with Poisson distribution? 

Thank you in advance

ana





**********************************************
A. C. Cebrian
Dpto. Metodos Estadisticos. Ed. Matematicas
Facultad de Ciencias. Universidad de Zaragoza
C\ P. Cerbuna, 12. 
Zaragoza 50009
Tfno: 976 761000 Ext. 3259
E-mail:acebrian@posta.unizar.es
**********************************************
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] Kolmogorov-Smirnov poisson test, acebrian <=