Hi, why don't you try try ks.test(VeriSeti1, VeriSeti2)$p.value All the best Jenny>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.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jennifer Barnes PhD student: long range drought prediction Climate Extremes Group Department of Space and Climate Physics University College London Holmbury St Mary Dorking, Surrey, RH5 6NT Tel: 01483 204149 Mob: 07916 139187 Web: http://climate.mssl.ucl.ac.uk
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]]
ks.test(x,y)[2] On 10/3/07, Emre Unal <emre.unal at gmail.com> wrote:> 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. >-- CH Chan Research Assistant - KWH http://www.macgrass.com
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. >