The log likelihood of a Wilcoxon rank sum density with data, x, m and n parameters.

likwilcox(m, n, x, log = FALSE)

Arguments

m

numbers of observations in the first and second sample, respectively. Can be vectors of positive integers.

n

numbers of observations in the first and second sample, respectively. Can be vectors of positive integers.

x

vector of quantiles.

log

logical; if TRUE, probabilities p are given as log(p).

Value

A numeric scalar for the log likelihood of the Wilcoxon rank sum density given the data where m and n can be held constant or if vector were given vector will be returned.

Details

The log likelihood is the log of a function of parameters given the data.

Examples

likwilcox(x = rwilcox(nn = 2, m = 3, n = 4), m = 3, n = 4)
#> [1] 0.01632653