ksMenu {RcmdrPlugin.UCA} | R Documentation |
Kolmogorov-Smirnov test
Description
Within the "Statistics" -> "Non-parametric test" menu, a new entry is
provided "Kolmogorov-Smirnov test for two samples..." to carry out a
Kolmogorov-Smirnov test, a two-sample test of the null hypothesis that
both samples were drawn from the same continuous distribution. This
option uses the function ks.test
of the package
stats
. For more information see ks.test
.
Details
Here is an example of "Kolmogorov-Smirnov test for two samples..." menu entry.
Load data "Baumann" selecting from Rcmdr menu: "Data" -> "Data in packages" -> "Read data set from an attached package..." then double-click on "carData", click on "Baumann" and on "OK". Rcmdr reply with the following command in source pane (R Script)
data(Baumann, package="carData")
To compare the distributions of "pretest.1" with "post.test.1", select from Rcmdr menu: "Statistics" -> "Non-parametric test" -> "Kolmogorov-Smirnov test for two samples..." select "pretest.1" and "post.test.1", then "OK". Rcmdr reply with the following command in source pane (R Script)
with(Baumann, ks.test(pretest.1, post.test.1))
Author(s)
Manuel Munoz-Marquez <manuel.munoz@uca.es>
See Also
For more information see Rcmdr-package
.
Para ayuda en español, véase
Test de Kolmogorov-Smirnov (es)
. (For Spanish help see Test de Kolmogorov-Smirnov (es)
.)