retrieveing value from KS test

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

retrieveing value from KS test

iritgur
Hi.
how can i insert the value of p_value from KS.test into vector?

Regards,
Irit.
Reply | Threaded
Open this post in threaded view
|

Re: retrieveing value from KS test

Rui Barradas
Hello,

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.
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: retrieveing value from KS test

iritgur
thank you.
it helps!