moments.matching: Moments of the generalised matching distribution
Description
moments.match
returns some representative moments from the distribution.
Usage
moments.matching(size, trials = 1, prob = 0, include.sd = FALSE)
Arguments
size
The size parameter for the generalised matching distribution (number of objects to match)
trials
The trials parameter for the generalised matching distribution (number of times the matching game is repeated)
prob
The probability parameter for the generalised matching distribution (probability of known match)
include.sd
Logical value; if TRUE
the output includes the standard deviation
Value
If all inputs are correctly specified (i.e., parameters are in allowable range) then the output will be
a data frame of moments
Details
This function computes some representative moments from the generalised matching distribution.
Further details on the distribution can be found in the following paper:
O'Neill, B. (2021) A generalised matching distribution for the problem of coincidences.
Examples
Run this code# NOT RUN {
moments.matching(5)
# }
Run the code above in your browser using DataLab