moments.matching: Moments of the generalised matching distribution

Description Usage Arguments Details Value Examples

View source: R/moments.matching.R

Description

moments.match returns some representative moments from the distribution.

Usage

1
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

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.

Value

If all inputs are correctly specified (i.e., parameters are in allowable range) then the output will be a data frame of moments

Examples

1

stat.extend documentation built on Nov. 23, 2021, 5:06 p.m.