[R] P-value

Frede Aakmann Tøgersen FredeA.Togersen at agrsci.dk
Wed Oct 3 12:40:35 CEST 2007


Try

str(ks.test(VeriSeti1, VeriSeti2)) # see ?str

then 

ks.test(VeriSeti1, VeriSeti2)$p.value



Med venlig hilsen
Frede Aakmann Tøgersen
 

 

> -----Oprindelig meddelelse-----
> Fra: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] På vegne af Emre Unal
> Sendt: 3. oktober 2007 11:32
> Til: r-help at r-project.org
> Emne: [R] P-value
> 
> How can i print only the P-Value of the kolmogorov smirnov test?
> 
> 
> > ks.test(VeriSeti1, VeriSeti2)
> 
>         Two-sample Kolmogorov-Smirnov test
> 
> data:  VeriSeti1 and VeriSeti2
> D = 0.5, p-value = 0.4413
> alternative hypothesis: two-sided
> 
> 
> This expression gives me the whole test results, i need only 
> the p-value = 0.4413.
> 
> Thanks for your concern and help
> 
> Emre UNAL
> Statistician
> 
> 	[[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.
> 



More information about the R-help mailing list