[R] retrieveing value from KS test

Rui Barradas ruipbarradas at sapo.pt
Fri Apr 5 20:45:47 CEST 2013


First of all, it's ks.test, all lower case. You can do the following.

x <- rnorm(100)  # Make up some data
y <- rnorm(100)
ks <- ks.test(x, y)

ks$p.value  # This is the value you want

See ?ks.test, section Value for a complete list of the components of the 
object returned by ks.test.

Hope this helps,

Rui Barradas

Em 05-04-2013 15:57, iritgur escreveu:
> Hi.
> how can i insert the value of p_value from KS.test into vector?
> Regards,
> Irit.
> --
> View this message in context: http://r.789695.n4.nabble.com/retrieveing-value-from-KS-test-tp4663439.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> 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