Description Usage Arguments Author(s) References See Also Examples

An extension of the Kruskal-Wallis test that allow specify arbitrary reference group. Also provide Mean Ridit for each group. Mean Ridit of a group is an estimate of probability a random observation from that group will be greater than or equal to a random observation from reference group.

1 |

`x` |
a numeric vector of data values or a matrix of crosstab data. |

`g` |
a vector giving group of data or when x is a crosstab, number 1 or 2 when group is in the row or column of crosstab. |

`ref` |
a text corresponds to label or code of arbitrary reference group or a number corresponds to row of group in output (when we want change reference group of output). Also user can enter an arbitrary numeric vector as reference group. Default is Null that used for total of all group as reference (special case that equivalent to the Kruskal-Wallis test). |

SeyedMahmood TaghaviShahri

Fleiss, J. L., (1986), The Design and Analysis of Clinical Experiments. New York: John Wiley & Sons.

Special case of Ridit Analysis is `kruskal.test`

when reference is total of all groups.

1 2 3 4 5 6 | ```
x=airquality$Ozone
g=airquality$Month
kruskal.test(x,g)
ridit(x,g)
ridit(x,g,"5")
ridit(x,g,5)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.