Description Usage Arguments Details Value

View source: R/matching.test.R

`matching.test`

performs the matching test.

1 2 3 4 5 6 7 | ```
matching.test(
x,
size,
null.prob = 0,
alternative = "greater",
approx = (length(x) > 100)
)
``` |

`x` |
Sample vector containing values from the generalised matching distribution |

`size` |
The size parameter (number of objects to match) |

`null.prob` |
The null value of the probability parameter |

`alternative` |
The alternative hypothesis |

`approx` |
A logical value specifying whether to use the normal approximation to the distribution |

The matching test considers a situation where a person attempts to match a set of objects to a corresponding set of positions. The null hypothesis is that the matching is performed at random and the alternative hypothesis is that the matching occurs with some ability on the part of the player.

For data vectors `x`

that are not too large we perform an exact test by computing the exact distribution of the
mean number of matches. If the number of data points is too large then we perform an approximate test using the normal
approximation to the distribution of the mean number of matches. The parameter `max.m`

sets the maximum number of
data points where we perform an exact test.

An htest object giving the output of the matching test

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.